C++ c+中的OpenCascade链接错误+;使用vs2017
我是打开Cascade的新手。在使用cmake毫无错误地构建occt-7.3.0-vc14-64之后,我在Include目录中添加了inc/in,在Library目录中添加了win64/vc14/libd/in,然后在main.cpp中只添加了“Include”。但单击调试按钮后,我得到如下链接错误:C++ c+中的OpenCascade链接错误+;使用vs2017,c++,visual-studio-2017,opencascade,C++,Visual Studio 2017,Opencascade,我是打开Cascade的新手。在使用cmake毫无错误地构建occt-7.3.0-vc14-64之后,我在Include目录中添加了inc/in,在Library目录中添加了win64/vc14/libd/in,然后在main.cpp中只添加了“Include”。但单击调试按钮后,我得到如下链接错误: Error LNK2019 unresolved external symbol "public: __cdecl Standard_OutOfMemory::Standard_OutOfM
Error LNK2019 unresolved external symbol "public: __cdecl
Standard_OutOfMemory::Standard_OutOfMemory(char const * const)" (??
0Standard_OutOfMemory@@QEAA@QEBD@Z) referenced in function "public:
void __cdecl Standard_OutOfMemory::`default constructor closure'(void)"
(??_FStandard_OutOfMemory@@QEAAXXZ)
还应该做些什么?
感谢您的帮助。此错误是找不到包含
标准\u OutOfMemory
的库
Standard\u OutOfMemory
是TKernel.dll
中的一个类,您应该将TKernel.lib
添加到项目的其他依赖项中,如下图所示:
此错误是找不到包含标准\u OutOfMemory
的库
Standard\u OutOfMemory
是TKernel.dll
中的一个类,您应该将TKernel.lib
添加到项目的其他依赖项中,如下图所示:
可能重复的可能重复的可能重复的感谢,它工作。顺便说一句,如何找出Standard_OutOfMemory是TKernel.dll中的一个类?只需在“源代码”文件夹下按名称搜索该类,或者很容易通过visual Studio Hanks搜索,它工作。顺便说一句,如何确定Standard_OutOfMemory是TKernel.dll中的一个类?只需在“源代码”文件夹下按名称搜索该类,或者通过visual studio进行搜索非常简单