无法找到-lsrc (gcc编译失败)

Cannot find -lsrc (gcc compilation failure)

本文关键字:gcc 编译 失败 -lsrc      更新时间:2023-10-16

我正试图在Netbeans中构建一个c++项目,并在输出控制台中,我有以下编译错误,这是由于缺少名为-lsrc的文件(标记为###)

我正在使用Suse Linux (SLED 11),有人知道我应该在包安装程序中下载什么包,以便我可以克服这个gcc编译问题吗?

g++ -o dist/Debug/GNU-Linux-x86/cppthriftserverv1 
build/Debug/GNU-Linux-x86/_ext/1338215927/test_types.o -lsrc 
#### HERE ####
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: 
 cannot find -lsrc
collect2: ld returned 1 exit status
#### HERE #####
gmake[2]: *** [dist/Debug/GNU-Linux-x86/cppthriftserverv1] Error 1
gmake[2]: Leaving directory `/home/TRYOUT/THRIFT/CPPSERVER/CPPServerProject/CPPThriftServerV1'
gmake[1]: *** [.build-conf] Error 2
gmake[1]: Leaving directory `/home/TRYOUT/THRIFT/CPPSERVER/CPPServerProject/CPPThriftServerV1'
gmake: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 614ms)

我认为IDE试图链接到您的项目的src文件夹中的一些库。你是否在源代码中包含了一个库?您可以创建一个Makefile,这样您就可以尝试从控制台进行编译,并从编译器中查看错误。