Skip to content
Discussion options

You must be logged in to vote

Short answer:
add target_compile_definitions(main PRIVATE GEO_DYNAMIC_LIBS)
to the CMake configuration of your program that uses GEOGRAM.

Longer answer: with this additional flag, GEOGRAM_API is defined as __declspec(dllimport), which is required for static data member (but function calls can work without it, which is why you did not see the problem before).

Thank you @Canjia-Huang for notifying and testing.

Replies: 1 comment

Comment options

BrunoLevy
Jul 26, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by BrunoLevy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant