forked from ElmerCSC/elmerfem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DLL-Export data in libmatc on Windows.
For data to be exported from a DLL on Windows, it has to be marked with a `dllexport` attribute. For users of the DLL, the same symbol has to be marked with a `dllimport` attribute. Do that with `listheaders` in libmatc to avoid linker errors like the following for ElmerGUI: ``` D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/vtkpost/matc.cpp.obj:matc.cpp:(.rdata$.refptr.listheaders[.refptr.listheaders]+0x0): undefined reference to `listheaders' ```
- Loading branch information
Showing
2 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters