这只是一个警告,在编译(-c)的时候使用了"-l"选项,这个应该用于链接。
下面有一段来自于http://gcc.gnu.org/ml/gcc-help/1999-12n/msg00351.html的原文:
The message that gcc reported is correct. When you supply a library (even a compiled object file like you did) to a command that does no linking (gcc -c), gcc simply informs you that the library was not used because no linking was done. You didn't ask it to. Since you specified -c, "source" files are going to be compiled into .o object files, NOT into an executable, nor is anything going to be done with any object files. Gcc saw the extraneous object file supplied and simply ignored it.

本文解释了在使用GCC编译器时遇到的一个常见警告信息——当使用-c选项同时指定库文件时产生的警告。文章详细说明了该警告的原因及如何避免。
2477

被折叠的 条评论
为什么被折叠?



