-
When I try to build the tests: fatal error LNK1181: cannot open input file 'canfigger.lib' To build the library and declare it, I have
For the exe tests, I use 'canfigger_dep' as the dependency. What is the proper way to do this so the tests will build on Windows? They already build on Linux, MacOS, and BSD. (All my changes are in this pull request. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
MSVC defaults to hidden visibility; if no symbols are public in a shared library, it will not create the corresponding |
Beta Was this translation helpful? Give feedback.
-
Thanks @QuLogic I'm now using this def file:
The tests are building but failing to run: exit status 3221225781 or signal 3221225653 SIGinvalid |
Beta Was this translation helpful? Give feedback.
-
Seems to work better when I link statically:
Unfortunately, 1/8 tests passed, 1 failed, and the rest timed out. |
Beta Was this translation helpful? Give feedback.
MSVC defaults to hidden visibility; if no symbols are public in a shared library, it will not create the corresponding
.lib
file. You would need to tag the public symbols with__declspec(dllexport)
or provide a symbol list with thevs_module_defs
argument.