无法找到-lsrc (gcc编译失败)
Cannot find -lsrc (gcc compilation failure)
我正试图在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,这样您就可以尝试从控制台进行编译,并从编译器中查看错误。
相关文章:
- 为什么 gcc 编译这个而 msvc 没有
- 错误:使用 clang 没有可行的重载,使用 GCC 编译
- 带有自动参数的函数使用 GCC 编译,但不使用 Visual C++ 编译
- 使用 MINGW gcc 编译时,不会为 std::string 调用重载的新运算符
- Steam 回调在 Linux / GCC 编译期间触发警告
- 在其他容器中使用 boost::container::static_vector 时,GCC 编译错误"将'const s'绑定到类型's&'的引用丢弃限定符"
- 如何使用 GCC 编译指示启用选项 '-Werror'?
- 如何实现使用 gcc-4.4 编译的大向量初始化?
- 关于这个在 Linux 上使用 gcc 编译的程序中的 vtable,nm 告诉我什么?
- 使用 TDM GCC 5.1.0 编译 PDCurses36 时出错
- 为什么这段代码无法使用 gcc 4.8.5 编译,而使用 clang 编译正常
- 使用 std::addressof 时出现 GCC 7 编译错误
- 在类模板上使用 arm gcc 编译期间的隔离错误
- 使用 GCC 编译C++时如何包含 C11 标头?
- 类数据成员指针的非类型模板参数包无法使用 gcc 编译
- 是否可以使用 GCC 编译具有特定编译器标志的代码文件的一部分?
- 将 cctype 函数分配给 std::function,gcc 编译错误
- GCC 编译时出现警告:未知转义序列:"\040"
- 为什么以下代码不使用GCC编译,而是用Clang编译罚款
- GCC编译器,为较低版本的GCC编译应用程序