Skip to content

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