使用gnu ld問題 - Linux

By Edwina
at 2012-04-17T20:21
at 2012-04-17T20:21
Table of Contents
關於gnu ld的使用
為何在使用ld時,會出現
undefined reference to 'puts'
我知是因為linker時,找不到其library.
它的預設library不是都在/usr/lib中.
所以我多加入-L/usr/lib,但還是不行.
因為直接使用gcc 可以,
請問我要怎麼做可以知道它在gcc到底做了什麼設定?
--
為何在使用ld時,會出現
undefined reference to 'puts'
我知是因為linker時,找不到其library.
它的預設library不是都在/usr/lib中.
所以我多加入-L/usr/lib,但還是不行.
因為直接使用gcc 可以,
請問我要怎麼做可以知道它在gcc到底做了什麼設定?
--
Tags:
Linux
All Comments
Related Posts
從windows7 遠端回ubuntu

By Queena
at 2012-04-17T02:22
at 2012-04-17T02:22
桌面相片軟體

By Susan
at 2012-04-16T20:26
at 2012-04-16T20:26
關於ubuntu 10.04的終端機背景問題

By Carolina Franco
at 2012-04-16T17:46
at 2012-04-16T17:46
如何輕鬆使用 box 網路硬碟服務

By George
at 2012-04-16T13:15
at 2012-04-16T13:15
ubuntu server 如何 免帳號/密碼 登入

By William
at 2012-04-15T09:54
at 2012-04-15T09:54