首先,我想将PhysX SDK中的一个Sample 独立出来。
我把所有原例子中的cpp和h文件都考到我新建的工程目录下之后,编译过了,但是连接出了问题,不知道怎么解决。错误信息如下:
Car.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<float,float,struct std::less<float>,class std::allocator<struct std::pair<float const ,float> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<float,float,struct std::less<float>,class std::allocator<struct std::pair<float const ,float> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@MMU?$less@M@std@@V?$allocator@U?$pair@$$CBMM@std@@@2@$0A@@std@@@std@@QBE_NABV012@@Z)
1>NxAllVehicles.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
1>NxVehicle.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
我把所有原例子中的cpp和h文件都考到我新建的工程目录下之后,编译过了,但是连接出了问题,不知道怎么解决。错误信息如下:
Car.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<float,float,struct std::less<float>,class std::allocator<struct std::pair<float const ,float> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<float,float,struct std::less<float>,class std::allocator<struct std::pair<float const ,float> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@MMU?$less@M@std@@V?$allocator@U?$pair@$$CBMM@std@@@2@$0A@@std@@@std@@QBE_NABV012@@Z)
1>NxAllVehicles.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
1>NxVehicle.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货