Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting symbols for dll usage #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aconstlink
Copy link

If imnodes is used as a dll, all symbols need to be exported. One purpose is that the imnodes context is then only created once in the dll and used through the exported symbols.

So IMNODES_API will be __declspec( dllexport ) or __declspec( dllimport ) depending on how the lib is used. Symbols are exported if the lib is compiled. Import is used if the lib is linked against. This is done by the imnodes user though and not the imnodes maintainer, so by default IMNODES_API is empty.

Specifying the correct declspec can be done using a custom imnodes_config.h file using the libs directive IMNODES_USER_CONFIG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant