Skip to content

Conversation

kuroneko
Copy link

  • due to cmake quirks, you can't specify a white-space only library name. CMake genuinely tries to link a " .lib" resulting in build failures.

  • With how the headers are written, if you want to static-link soundio, SOUNDIO_STATIC_LIBRARY must be defined during compile - this suppresses the DLL export/import declarations - if this is not done, you get errors about missing imp... symbols during link due to the symbol munging that MSVC uses for DLL import libraries. Export the symbol through the CMAKE mechanisms by declaring it PUBLIC.

* due to cmake quirks, you can't specify a white-space only library
  name.  CMake genuinely tries to link a " .lib" resulting in build
  failures.

* With how the headers are written, if you want to static-link soundio,
  SOUNDIO_STATIC_LIBRARY must be defined during compile - this supresses
  the DLL export/import declarations - if this is not done, you get
  errors about missing _imp_... symbols during link due to the symbol
  munging that MSVC uses for DLL import libraries.
@pierro42
Copy link

This !

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.

2 participants