当前位置: 技术问答>linux和unix
gcc 参数
来源: 互联网 发布时间:2016-05-09
本文导语: gcc -O3 -DDBUG_OFF -rdynamic -o replace replace.o yes ../mysys/bmysys.a ../dbug/bdbug.a ../strings/bmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread 其中 -lz -lpthread -lcrypt -lnsl -lm -lpthread 这是什么意思??? | ...
gcc -O3 -DDBUG_OFF -rdynamic -o replace replace.o yes ../mysys/bmysys.a ../dbug/bdbug.a ../strings/bmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread
其中
-lz -lpthread -lcrypt -lnsl -lm -lpthread 这是什么意思???
其中
-lz -lpthread -lcrypt -lnsl -lm -lpthread 这是什么意思???
|
-lpthread
-l 是连接某个库的意思
pthread 是库的名字
-l 是连接某个库的意思
pthread 是库的名字
|
yes: No such file or directory
没有的是 yes 吧
没有的是 yes 吧
|
man内容比较多,看起来比较慢。
|
gcc -O3 -DDBUG_OFF -rdynamic -o replace replace.o yes ../mysys/bmysys.a ../dbug/bdbug.a ../strings/bmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread
不知道楼主的yes是从哪里来的。
原版的makefile里面肯定不会存在这种东西的。
楼主自己搞的?
|
哈哈
多半是配置的时候敲错东西了。
重新配置下罢。
注意先看readme
configue的时候会让你输入点路径啥的,估计楼主顺手写了yes。。。。
多半是配置的时候敲错东西了。
重新配置下罢。
注意先看readme
configue的时候会让你输入点路径啥的,估计楼主顺手写了yes。。。。
|
-ldir 意思是程序中用到是函数库是在dir目录下。
|
-lpthread,应该是链接名称为libpthread.so的库,你可以搜一下在你的机器上有没这个库,如若没有,就得下载相应的软件包了,把错误在google上搜一下,应该能找到相应的软件包名称,我当时是这样解决的