Must mean it is declared differently in nglib and FreeCAD (occgeom.hpp and NETGENPlugin_Mesher.cpp)'netgen::OCCGenerateMesh' : redefinition; different linkage
In this case, I would apply my changes to occgeom.hpp in addition to wmayer's. (At least export the OCCGenerateMesh function, I don't remember if exporting the OCCGeometry class is necessary.)
Code: Select all
--- netgen-5.1/libsrc/occ/occgeom.hpp Tue Jun 25 04:28:59 2013
+++ netgen-5.1_new/libsrc/occ/occgeom.hpp Fri Jul 11 00:38:32 2014
@@ -189,7 +189,7 @@
- class OCCGeometry : public NetgenGeometry
+ class DLL_HEADER OCCGeometry : public NetgenGeometry
{
Point<3> center;
@@ -435,7 +435,7 @@
// Philippose - 31.09.2009
// External access to the mesh generation functions within the OCC
// subsystem (Not sure if this is the best way to implement this....!!)
- extern int OCCGenerateMesh (OCCGeometry & occgeometry, Mesh*& mesh,
+ DLL_HEADER extern int OCCGenerateMesh (OCCGeometry & occgeometry, Mesh*& mesh,
MeshingParameters & mparam,
int perfstepsstart, int perfstepsend);