<div dir="ltr">Hi there!<div><br></div><div>I'm trying to compile the source code on Windows 10 in Visual Studio 2015. But I really got stuck because I get these errors while compiling (<b><font color="#ff0000">see the errors below and the screenshot attached</font></b>). Apparently the problem is in the <b>MeshOptimizer.cpp </b>file<b>. </b>It can't find definition of <b>MeshOpt::</b><b>MeshOpt</b> constructor<b> </b>and <b>MeshOpt::optimize</b> method for some reason. But the <b>MeshOpt.h</b> and <b>MeshOpt.cpp</b> are included to the project. I've run <b>cmake</b> with <b>BLAS_LAPACK_LIBRARIES</b> and <b>CMAKE_PREFIX_PATH</b> variables pointing to the locations of <b>blas</b> and <b>lapack</b> libs and other external packages.</div><div><br></div><div>Could you possibly help me?</div><div><br></div><div><b><font color="#ff0000" size="6">1)</font></b></div><div><div><b>Severity<span class="" style="white-space:pre">      </span>Code<span class="" style="white-space:pre">      </span>Description<span class="" style="white-space:pre">       </span>Project<span class="" style="white-space:pre">   </span>File<span class="" style="white-space:pre">      </span>Line<span class="" style="white-space:pre">      </span>Suppression State</b></div><div><b>Error<span class="" style="white-space:pre">  </span>LNK2019<span class="" style="white-space:pre">   </span>unresolved external symbol "public: __thiscall MeshOpt::MeshOpt(class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::set<class MElement *,struct std::less<class MElement *>,class std::allocator<class MElement *> > const &,class std::set<class MVertex *,struct std::less<class MVertex *>,class std::allocator<class MVertex *> > &,class std::set<class MElement *,struct std::less<class MElement *>,class std::allocator<class MElement *> > const &,class MeshOptParameters const &)" (??0MeshOpt@@QAE@ABV?$map@PAVMElement@@PAVGEntity@@U?$less@PAVMElement@@@std@@V?$allocator@U?$pair@QAVMElement@@PAVGEntity@@@std@@@4@@std@@0ABV?$set@PAVMElement@@U?$less@PAVMElement@@@std@@V?$allocator@PAVMElement@@@3@@2@AAV?$set@PAVMVertex@@U?$less@PAVMVertex@@@std@@V?$allocator@PAVMVertex@@@3@@2@1ABVMeshOptParameters@@@Z) referenced in function "void __cdecl `anonymous namespace'::optimizeDisjointPatches(class std::map<class MVertex *,class std::vector<class MElement *,class std::allocator<class MElement *> >,struct std::less<class MVertex *>,class std::allocator<struct std::pair<class MVertex * const,class std::vector<class MElement *,class std::allocator<class MElement *> > > > > const &,class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::map<class MElement *,class MElement *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class MElement *> > > const &,class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::set<class MElement *,struct std::less<class MElement *>,class std::allocator<class MElement *> > &,struct MeshOptParameters &)" (?optimizeDisjointPatches@?A0x0b493326@@YAXABV?$map@PAVMVertex@@V?$vector@PAVMElement@@V?$allocator@PAVMElement@@@std@@@std@@U?$less@PAVMVertex@@@3@V?$allocator@U?$pair@QAVMVertex@@V?$vector@PAVMElement@@V?$allocator@PAVMElement@@@std@@@std@@@std@@@3@@std@@ABV?$map@PAVMElement@@PAVGEntity@@U?$less@PAVMElement@@@std@@V?$allocator@U?$pair@QAVMElement@@PAVGEntity@@@std@@@4@@3@ABV?$map@PAVMElement@@PAV1@U?$less@PAVMElement@@@std@@V?$allocator@U?$pair@QAVMElement@@PAV1@@std@@@3@@3@1AAV?$set@PAVMElement@@U?$less@PAVMElement@@@std@@V?$allocator@PAVMElement@@@3@@3@AAUMeshOptParameters@@@Z)<span class="" style="white-space:pre">      </span>gmsh<span class="" style="white-space:pre">      </span>E:\Code\gmsh\build\MeshOptimizer.obj<span class="" style="white-space:pre">      </span>1<span class="" style="white-space:pre"> </span></b></div></div><div><br></div><div><b><font size="6" color="#ff0000">2)</font></b></div><div><div><b>Severity<span class="" style="white-space:pre">      </span>Code<span class="" style="white-space:pre">      </span>Description<span class="" style="white-space:pre">       </span>Project<span class="" style="white-space:pre">   </span>File<span class="" style="white-space:pre">      </span>Line<span class="" style="white-space:pre">      </span>Suppression State</b></div><div><b>Error<span class="" style="white-space:pre">  </span>LNK2019<span class="" style="white-space:pre">   </span>unresolved external symbol "public: int __thiscall MeshOpt::optimize(class MeshOptParameters const &)" (?optimize@MeshOpt@@QAEHABVMeshOptParameters@@@Z) referenced in function "void __cdecl `anonymous namespace'::optimizeDisjointPatches(class std::map<class MVertex *,class std::vector<class MElement *,class std::allocator<class MElement *> >,struct std::less<class MVertex *>,class std::allocator<struct std::pair<class MVertex * const,class std::vector<class MElement *,class std::allocator<class MElement *> > > > > const &,class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::map<class MElement *,class MElement *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class MElement *> > > const &,class std::map<class MElement *,class GEntity *,struct std::less<class MElement *>,class std::allocator<struct std::pair<class MElement * const,class GEntity *> > > const &,class std::set<class MElement *,struct std::less<class MElement *>,class std::allocator<class MElement *> > &,struct MeshOptParameters &)" (?optimizeDisjointPatches@?A0x0b493326@@YAXABV?$map@PAVMVertex@@V?$vector@PAVMElement@@V?$allocator@PAVMElement@@@std@@@std@@U?$less@PAVMVertex@@@3@V?$allocator@U?$pair@QAVMVertex@@V?$vector@PAVMElement@@V?$allocator@PAVMElement@@@std@@@std@@@std@@@3@@std@@ABV?$map@PAVMElement@@PAVGEntity@@U?$less@PAVMElement@@@std@@V?$allocator@U?$pair@QAVMElement@@PAVGEntity@@@std@@@4@@3@ABV?$map@PAVMElement@@PAV1@U?$less@PAVMElement@@@std@@V?$allocator@U?$pair@QAVMElement@@PAV1@@std@@@3@@3@1AAV?$set@PAVMElement@@U?$less@PAVMElement@@@std@@V?$allocator@PAVMElement@@@3@@3@AAUMeshOptParameters@@@Z)<span class="" style="white-space:pre">    </span>gmsh<span class="" style="white-space:pre">      </span>E:\Code\gmsh\build\MeshOptimizer.obj<span class="" style="white-space:pre">      </span>1</b><span class="" style="white-space:pre">       </span></div></div><div><span class="" style="white-space:pre"><br></span></div><div><span style="white-space:pre">Best regards,</span></div><div>Artem.</div><div><br></div></div>