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

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



同不知道该改哪儿。。。不过干嘛不写个Makefile啊,参数再长敲一次又不麻烦。。。

2012/3/21 Qzi <hotseason007@gmail.com>
其实我在 /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

------------------
那天我舍弃了吟咏,却让全世界听到了我的声音...
 
 
 
------------------ 原始邮件 ------------------
发件人: "YunQiang Su"<wzssyqa@gmail.com>;
发送时间: 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



--
Yuliang@Harbin Engineering University

Phone: +86 136 5450 7638
Google Voice: (347) 450-5748
Email: jyl198803@gmail.com

Site: http://gnailuy.com/
Twitter: @gnailuy
About.me: http://about.me/gnailuy


Reply to: