From 2da94c3e6b578c05a23511b49d7c2715f7c1bcf7 Mon Sep 17 00:00:00 2001 From: Monty Montgomery Date: Sun, 15 May 2022 00:43:27 -0400 Subject: [PATCH] Export additional classes to provide typeinfo visibility Add DLL_HEADER to Surface, Primitive, and STLTopology in order to make typeinfo available to link stage (otherwise, link fails with GNU ld). --- libsrc/csg/surface.hpp | 4 ++-- libsrc/stlgeom/stltopology.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/csg/surface.hpp b/libsrc/csg/surface.hpp index f09d8c51..7cd31b27 100644 --- a/libsrc/csg/surface.hpp +++ b/libsrc/csg/surface.hpp @@ -19,7 +19,7 @@ namespace netgen This class is used for generation of surface meshes in NETGEN */ - class Surface + class DLL_HEADER Surface { protected: /// invert normal vector @@ -236,7 +236,7 @@ namespace netgen - class Primitive + class DLL_HEADER Primitive { protected: NgArray surfaceids; diff --git a/libsrc/stlgeom/stltopology.hpp b/libsrc/stlgeom/stltopology.hpp index 101cde53..6f916bed 100644 --- a/libsrc/stlgeom/stltopology.hpp +++ b/libsrc/stlgeom/stltopology.hpp @@ -276,7 +276,7 @@ ostream& operator<<(ostream& os, const STLTriangle& t); -class STLTopology +class DLL_HEADER STLTopology { protected: Array trias;