[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

回复: gcc 编译时怎么做能不加那个-L 呀



其实我在 /etc/ld.so.conf
里面加入 /usr/local/fastcgi/lib
然后ldconfig
最后 gcc -o hello.fcgi hello.c -lfcgi

还是错误
/usr/bin/ld: cannot find -lfcgi
collect2: ld returned 1 exit status

------------------
那天我舍弃了吟咏,却让全世界听到了我的声音...
 
 
 
------------------ 原始邮件 ------------------
发送时间: 2012年3月21日(星期三) 中午1:57
收件人: "Qzi"<hotseason007@gmail.com>;
抄送: "debian-chinese-gb"<debian-chinese-gb@lists.debian.org>;
主题: Re: gcc 编译时怎么做能不加那个-L 呀
 
2012/3/21 Qzi <hotseason007@gmail.com>:
> #gcc -o hello.fcgi hello.c -L /usr/local/fastcgi/lib/ -lfcgi
-L 后边多了个空格? 或者选项要放在前面?
>
> gcc 编译时怎么做能不加那个-L 呀
>
> 同时希望推荐一部书让我备着,偶尔可以解决相关的问题 ...
> --
> Your biological and technological distinctiveness will be added to our own.
> Resistance is futile.
>
>



--
YunQiang Su

Reply to: