Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.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++ 未定义对“cxa”、“throw”、“bad”、“array”和“new”长度的引用(g+;+;7.4)_C++_Cmake_Compilation - Fatal编程技术网

C++ 未定义对“cxa”、“throw”、“bad”、“array”和“new”长度的引用(g+;+;7.4)

C++ 未定义对“cxa”、“throw”、“bad”、“array”和“new”长度的引用(g+;+;7.4),c++,cmake,compilation,C++,Cmake,Compilation,我在使用g++7.4在Ubuntu18.04上编译fhDOOM()版本时遇到问题 我尝试过安装g++4.9,但编译器没有使用它 CMakeFiles/fhDOOM.dir/renderer/draw_glsl.cpp.o: In function 'RB_GLSL_DrawInteractions()': draw_glsl.cpp:(.text+0x2867): undefined reference to '__cxa_throw_bad_array_new_length' CMakeF

我在使用g++7.4在Ubuntu18.04上编译fhDOOM()版本时遇到问题

我尝试过安装g++4.9,但编译器没有使用它

CMakeFiles/fhDOOM.dir/renderer/draw_glsl.cpp.o: In function 
'RB_GLSL_DrawInteractions()': draw_glsl.cpp:(.text+0x2867): 
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/cm/CollisionModel_load.cpp.o: In function 'idCollisionModelManagerLocal::ConvertPatch(cm_model_s*, idMapPatch const*, int)': CollisionModel_load.cpp:(.text+0xa2d0): 
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2d8): 
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2e0): 
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2e8): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/framework/async/ServerScan.cpp.o:ServerScan.cpp:(.text+0x1b20): more undefined references to '__cxa_throw_bad_array_new_length' follow 
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o: In function 'idRenderModelStatic::ConvertOBJToModelSurfaces(objModel_t const*)': Model.cpp:(.text+0x921f): 
undefined reference to 'std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned int) const' Model.cpp:(.text+0xb305): 
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb36f): 
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb37a): 
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb3f3): 
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb3fe): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o:Model.cpp:(.text+0xb409): more undefined references to '__cxa_throw_bad_array_new_length' follow 
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o: In function 'std::_Hashtable<objVertex_t, std::pair<objVertex_t const, int>, std::allocator<std::pair<objVertex_t const, int> >, std::__detail::_Select1st, std::equal_to<objVertex_t>, std::hash<objVertex_t>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_insert_unique_node(unsigned int, unsigned int, std::__detail::_Hash_node<std::pair<objVertex_t const, int>, true>*)': Model.cpp:(.text._ZNSt10_HashtableI11objVertex_tSt4pairIKS0_iESaIS3_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS5_10_Hash_nodeIS3_Lb1EEE[_ZNSt10_HashtableI11objVertex_tSt4pairIKS0_iESaIS3_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS5_10_Hash_nodeIS3_Lb1EEE]+0x4b): 
undefined reference to 'std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned int, unsigned int, unsigned int) const' 
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o: In function 'idRenderModelManagerLocal::PrintMemInfo(MemInfo_t*)': ModelManager.cpp:(.text+0xe16): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o: In function 'idRenderModelManagerLocal::AddModel(idRenderModel*)': ModelManager.cpp:(.text+0x15ba): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/RenderSystem.cpp.o: In function 'idRenderSystemLocal::AllocRenderWorld()': RenderSystem.cpp:(.text+0x2a61): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L58': RenderSystem_init.cpp:(.text+0x494): 
undefined reference to 'std::__throw_system_error(int)' 
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L573': RenderSystem_init.cpp:(.text+0x32de): 
undefined reference to 'std::__throw_system_error(int)' 
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function 'RB_PrintDebugOutput()': RenderSystem_init.cpp:(.text+0x398d): 
undefined reference to 'std::__throw_system_error(int)' 
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L806': RenderSystem_init.cpp:(.text+0x4e16): 
undefined reference to 'std::__throw_system_error(int)' 
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::fhShadowMapAllocator()': ShadowMapAllocator.cpp:(.text+0x4d6): 
undefined reference to '__cxa_throw_bad_array_new_length' ShadowMapAllocator.cpp:(.text+0x503): 
undefined reference to '__cxa_throw_bad_array_new_length' ShadowMapAllocator.cpp:(.text+0x50b): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::FreeAll()': ShadowMapAllocator.cpp:(.text+0x79c): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::Make(int)': ShadowMapAllocator.cpp:(.text+0xb28): 
undefined reference to '__cxa_throw_bad_array_new_length' 
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o:ShadowMapAllocator.cpp:(.text+0xf89): more undefined references to '__cxa_throw_bad_array_new_length' follow
collect2: error: ld returned 1 exit status
neo/CMakeFiles/fhDOOM.dir/build.make:4676: recipe for target 'bin/fhDOOM' failed
make[2]: *** [bin/fhDOOM] Error 1 
CMakeFiles/Makefile2:261: recipe for target 'neo/CMakeFiles/fhDOOM.dir/all' failed
make[1]: *** [neo/CMakeFiles/fhDOOM.dir/all] Error 2
Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
cmakfiles/fhDOOM.dir/renderer/draw_glsl.cpp.o:函数中
“RB_GLSL_DrawInteractions()”:draw_GLSL.cpp:(.text+0x2867):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/cm/CollisionModel_load.cpp.o:在函数“idCollisionModelManagerLocal::ConvertPatch(cm_model_s*,idMapPatch const*,int)”中:CollisionModel_load.cpp:(.text+0xa2d0):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”冲突模型的引用\u load.cpp:(.text+0xa2d8):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”碰撞模型的引用\u load.cpp:(.text+0xa2e0):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”冲突模型的引用\u load.cpp:(.text+0xa2e8):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/framework/async/ServerScan.cpp.o:ServerScan.cpp:(.text+0x1b20):下面是对“\uucxa\u throw\u bad\u array\u new\u length”的更多未定义引用
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o:在函数“idRenderModelStatic::ConvertOBJToModelSurfaces(objModel_t const*)”中:Model.cpp:(.text+0x921f):
未定义对“标准::u详细信息::Prime_rehash_policy::M_next_bkt(无符号整数)常量”模型的引用。cpp:(.text+0xb305):
未定义对“\u cxa\u throw\u bad\u array\u new\u length”模型的引用。cpp:(.text+0xb36f):
未定义对“\uuucxa\u throw\u bad\u array\u new\u length”模型的引用。cpp:(.text+0xb37a):
未定义对“\uuucxa\u throw\u bad\u array\u new\u length”模型的引用。cpp:(.text+0xb3f3):
未定义对“\uuucxa\u throw\u bad\u array\u new\u length”模型的引用。cpp:(.text+0xb3fe):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o:Model.cpp:(.text+0xb409):下面是对“\uucxa\u throw\u bad\u array\u new\u length”的更多未定义引用
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o:在函数“std::_Hashtable::_M_insert_unique_node(unsigned int,unsigned int,std:_detail::_Hash_node*)”中:Model.cpp:(.text.)[\uznst10\uHashtablei11ObjVertex\uTST4pairiks0\uIesais3\uEnst8\uuuu8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8\u8
未定义对“std::_详细信息::_Prime_rehash_policy::_M_need_rehash(unsigned int,unsigned int,unsigned int)const”的引用
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o:在函数“idRenderModelManagerLocal::PrintMemInfo(MemInfo_t*)”中:ModelManager.cpp:(.text+0xe16):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o:在函数“idRenderModelManagerLocal::AddModel(idRenderModel*)”中:ModelManager.cpp:(.text+0x15ba):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/RenderSystem.cpp.o:在函数“idRenderSystemLocal::AllocRenderWorld()”中:RenderSystem.cpp:(.text+0x2a61):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o:在函数“.L58”中:RenderSystem_init.cpp:(.text+0x494):
对“std::\抛出\系统\错误(int)”的未定义引用
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o:在函数“.L573”中:RenderSystem_init.cpp:(.text+0x32de):
对“std::\抛出\系统\错误(int)”的未定义引用
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o:在函数“RB_PrintDebugOutput()”中:RenderSystem_init.cpp:(.text+0x398d):
对“std::\抛出\系统\错误(int)”的未定义引用
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o:在函数“.L806”中:RenderSystem_init.cpp:(.text+0x4e16):
对“std::\抛出\系统\错误(int)”的未定义引用
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o:在函数“fhShadowMapAllocator::fhShadowMapAllocator()”中:ShadowMapAllocator.cpp:(.text+0x4d6):
对“\uuuucxa\u throw\u bad\u array\u new\u length”ShadowMapAllocator.cpp:(.text+0x503)的未定义引用:
对“\uuuucxa\u throw\u bad\u array\u new\u length”ShadowMapAllocator.cpp:(.text+0x50b)的未定义引用:
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o:在函数“fhShadowMapAllocator::FreeAll()”中:ShadowMapAllocator.cpp:(.text+0x79c):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/shadowmappallocator.cpp.o:在函数“fhshadowmappallocator::Make(int)”中:shadowmappallocator.cpp:(.text+0xb28):
未定义对“\uuuucxa\u throw\u bad\u array\u new\u length”的引用
CMakeFiles/fhDOOM.dir/renderer/shadowmappallocator.cpp.o:shadowmappallocator.cpp:(.text+0xf89):下面是对“\uucxa\u throw\u bad\u array\u new\u length”的更多未定义引用
collect2:错误:ld返回了1个退出状态
neo/CMakeFiles/fhDOOM.dir/build.make:4676:目标“bin/fhDOOM”的配方失败
生成[2]:***[bin/fhDOOM]错误1
CMakeFiles/Makefile2:261:目标“neo/CMakeFiles/fhDOOM.dir/all”的配方失败
make[1]:***[neo/CMakeFiles/fhDOOM.dir/all]错误2
生成文件:83:目标“全部”的配方生成失败:**[all]错误2

看起来您缺少符号。是否可以尝试重新生成生成文件本身?是否碰巧有任何配置脚本?

看起来您缺少符号。是否可以尝试重新生成生成文件本身?是否碰巧有任何配置脚本?

是的,它在github上。脚本是setup\u ubuntu.sh和cmake\u linux.sh是的,它在github上。脚本是setup\u ubuntu.sh和cmake\u linux.sh