Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Netbeans上构建的架构x86_64的未定义符号_C++_Linker - Fatal编程技术网

C++ Netbeans上构建的架构x86_64的未定义符号

C++ Netbeans上构建的架构x86_64的未定义符号,c++,linker,C++,Linker,我正在尝试使用QuickFix创建一个简单的修复客户端服务器,并尝试实现QuickFix.Application接口 在构建过程中,我遇到了这个问题:“架构x86_64的未定义符号”,尽管我已经阅读了这个问题的所有相关答案,并尝试了所有建议,但我仍然存在上述问题 我使用NETBeaS和C++,这是我得到的错误 g++ -o dist/Debug/GNU-MacOSX/fix_engine_server build/Debug/GNU-MacOSX/Application.o build/Deb

我正在尝试使用QuickFix创建一个简单的修复客户端服务器,并尝试实现QuickFix.Application接口

在构建过程中,我遇到了这个问题:“架构x86_64的未定义符号”,尽管我已经阅读了这个问题的所有相关答案,并尝试了所有建议,但我仍然存在上述问题

我使用NETBeaS和C++,这是我得到的错误

 g++ -o dist/Debug/GNU-MacOSX/fix_engine_server build/Debug/GNU-MacOSX/Application.o build/Debug/GNU-MacOSX/main.o  -lstdc++
 Undefined symbols for architecture x86_64:
 "FIX::Message::toString(std::__1::basic_string<char,   std::__1::char_traits<char>, std::__1::allocator<char> >&, int, int, int) const", referenced from:
 FIX::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, FIX::Message const&) in Application.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 make[2]: *** [dist/Debug/GNU-MacOSX/fix_engine_server] Error 1
 make[1]: *** [.build-conf] Error 2
 make: *** [.build-impl] Error 2
g++-o dist/Debug/GNU MacOSX/fix_engine_server build/Debug/GNU MacOSX/Application.o build/Debug/GNU MacOSX/main.o-lstdc++
架构x86_64的未定义符号:
“FIX::Message::toString(std::_1::basic_string&,int,int,int)const”,引用自:
FIX::operatorC/C++->C++\u编译器:/usr/bin/g++

在属性->链接器->其他_选项上:-lstdc++ 在属性->链接器->工具上:g++


有什么建议吗?

我不熟悉这个库。它只是头吗?库是否安装在链接编辑器知道的位置(默认库搜索路径的一部分)?最后,如果安装了lib,是32位还是64位?您给了我一个提示,我可能需要用64位构建lib,谢谢