在尝试构建项目时,我仍然收到以下错误:
LNK2019: unresolved external symbol gmshFree referenced in function "int __cdecl gmsh::model::geo::addCurveLoop(class std::vector<int,class std::allocator<int> > const &,int,bool)" (?addCurveLoop@geo@model@gmsh@@YAHAEBV?$vector@HV?$allocator@H@std@@@std@@H_N@Z)
请说我在这里缺少什么。我在 Windows 10 上运行 Microsoft Visual Studio Community 2019(版本 16.10.4)。
您是否添加了 #include "gmsh.h " 并在 Configuration Properties > Linker > Input 中添加了 gmsh.lib?有关更多信息,您可以参考文档:创建使用 DLL 的客户端应用程序。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句