Strange linker error


I have linker error with the function Mesh::GetRegionNamesCD. The strange thing is that I am calling a lot of functions defined on the same source file without any problem (Mesh::AddPoint, Mesh::AddFaceDescriptor etc.)

Here is the error reported by Visual Studio 2022:

error LNK2019: riferimento al simbolo esterno “public: class netgen::NgArray<class std::basic_string<char,struct std::char_traits,class std::allocator > *,0,int> & __cdecl netgen::Mesh::GetRegionNamesCD(int)” (?GetRegionNamesCD@Mesh@netgen@@QEAAAEAV?$NgArray@PEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$0A@H@2@H@Z) non risolto nella funzione main


ah - this function misses the DLL_HEADER,
in netgen/libsrc/meshing/meshclass.hpp, line 751


I’ve added the DLL_HEADER specifier and it works. Thanks.