We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Configured with BUILD_TESTS and built.
No compiler warnings
/home/eyalroz/src/mine/dylib/tests/lib.cpp:4:18: warning: ‘pi_value’ initialized and declared ‘extern’ 4 | DYLIB_API double pi_value = 3.14159; | ^~~~~~~~ /home/eyalroz/src/mine/dylib/tests/lib.cpp:5:17: warning: ‘ptr’ initialized and declared ‘extern’ 5 | DYLIB_API void *ptr = (void *)1; | ^~~
Now, the warnings are pretty innocuous, but - maybe you should create an extern "C" block to avoid them? Or perhaps - a proper-C library?
The text was updated successfully, but these errors were encountered:
As I'm currently working on #27 to be able to load C++ mangled symbols, the extern "C" block will be removed from DYLIB_API.
extern "C"
DYLIB_API
Those changes will fix unit tests GCC warnings
Sorry, something went wrong.
martin-olivier
Successfully merging a pull request may close this issue.
Steps to reproduce
Configured with BUILD_TESTS and built.
Expected behaviour
No compiler warnings
Actual behaviour
Now, the warnings are pretty innocuous, but - maybe you should create an extern "C" block to avoid them? Or perhaps - a proper-C library?
The text was updated successfully, but these errors were encountered: