mesh pointer should be declared extern in visualpkg

This commit is contained in:
Christopher Lackner 2022-12-07 12:11:04 +01:00
parent 0a8bef493b
commit f3ba4e2706
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ target_sources(nggui PRIVATE
vssolution.cpp
visualpkg.cpp
)
target_link_libraries( nggui PUBLIC "$<BUILD_INTERFACE:netgen_python>" ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} )
target_link_libraries( nggui PUBLIC "$<BUILD_INTERFACE:netgen_python>" ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} nglib)
install(FILES
meshdoc.hpp mvdraw.hpp visual_api.hpp

View File

@ -377,7 +377,7 @@ namespace netgen
}
VisualSceneMeshDoctor vsmeshdoc;
DLL_HEADER shared_ptr<Mesh> mesh;
DLL_HEADER extern shared_ptr<Mesh> mesh;
int Ng_MeshDoctor(ClientData clientData,
Tcl_Interp * interp,