[Gmsh] PLEASE HELP - Linking error while compiling Gmsh

Артем Вальмус artemvalmus at gmail.com
Sun Apr 24 15:13:08 CEST 2016


Hi there!

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 (*see the
errors below and the screenshot attached*). Apparently the problem is in
the *MeshOptimizer.cpp *file*. *It can't find definition of *MeshOpt::*
*MeshOpt* constructor and *MeshOpt::optimize* method for some reason. But
the *MeshOpt.h* and *MeshOpt.cpp* are included to the project. I've run
*cmake* with *BLAS_LAPACK_LIBRARIES* and *CMAKE_PREFIX_PATH* variables
pointing to the locations of *blas* and *lapack* libs and other external
packages.

Could you possibly help me?

*1)*
*Severity Code Description Project File Line Suppression State*
*Error LNK2019 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 at ABV?$map at PAVMElement@@PAVGEntity@@U?$less at PAVMElement@@@std@@V?$allocator at U?$pair at QAVMElement@@PAVGEntity@@@std@@@4@@std@@0ABV?$set at PAVMElement@@U?$less at PAVMElement@@@std@@V?$allocator at PAVMElement@@@3@@2 at AAV?$set at PAVMVertex@@U?$less at PAVMVertex@@@std@@V?$allocator at PAVMVertex@@@3@@2 at 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 at PAVMVertex@@V?$vector at PAVMElement@@V?$allocator at PAVMElement@@@std@@@std@@U?$less at PAVMVertex@@@3 at V?$allocator at U?$pair at QAVMVertex@@V?$vector at PAVMElement@@V?$allocator at PAVMElement@@@std@@@std@@@std@@@3@@std@@ABV?$map at PAVMElement@@PAVGEntity@@U?$less at PAVMElement@@@std@@V?$allocator at U?$pair at QAVMElement@@PAVGEntity@@@std@@@4@@3 at ABV?$map at PAVMElement@@PAV1 at U?$less at PAVMElement@@@std@@V?$allocator at U?$pair at QAVMElement@@PAV1@@std@@@3@@3 at 1AAV?$set at PAVMElement@@U?$less at PAVMElement@@@std@@V?$allocator at PAVMElement@@@3@@3 at AAUMeshOptParameters@@@Z)
gmsh E:\Code\gmsh\build\MeshOptimizer.obj 1 *

*2)*
*Severity Code Description Project File Line Suppression State*
*Error LNK2019 unresolved external symbol "public: int __thiscall
MeshOpt::optimize(class MeshOptParameters const &)"
(?optimize at 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 at PAVMVertex@@V?$vector at PAVMElement@@V?$allocator at PAVMElement@@@std@@@std@@U?$less at PAVMVertex@@@3 at V?$allocator at U?$pair at QAVMVertex@@V?$vector at PAVMElement@@V?$allocator at PAVMElement@@@std@@@std@@@std@@@3@@std@@ABV?$map at PAVMElement@@PAVGEntity@@U?$less at PAVMElement@@@std@@V?$allocator at U?$pair at QAVMElement@@PAVGEntity@@@std@@@4@@3 at ABV?$map at PAVMElement@@PAV1 at U?$less at PAVMElement@@@std@@V?$allocator at U?$pair at QAVMElement@@PAV1@@std@@@3@@3 at 1AAV?$set at PAVMElement@@U?$less at PAVMElement@@@std@@V?$allocator at PAVMElement@@@3@@3 at AAUMeshOptParameters@@@Z)
gmsh E:\Code\gmsh\build\MeshOptimizer.obj 1*

Best regards,
Artem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160424/3300ee2e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_3.png
Type: image/png
Size: 150613 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160424/3300ee2e/attachment-0001.png>


More information about the gmsh mailing list