Open ClementTroesch opened 5 months ago
Ok so I have continued my tests and it seems to work with cl
. The issue seems to come from the compilation with clang-cl
. I am not quite sure what could be the issue here...
I managed to export the expected symbols using the -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE
cmake parameter. I guess clang-cl
does not export all symbols using the ODIL_API
macro. I'm not sure why as some of the symbols are still exported as expected...
I'm leaving the issue open as I would expect the ODIL_API
macro to be sufficient.
If you are not planning to support clang-cl
feel free to close the issue :)
Thanks, Clément
Hi there,
I'm currently trying to build a small test app with Odil on Windows 10 using clang-cl (VS 2022) but I get linking issue due to unresolved external symbols.
The issue also appears when building the examples, this is how I configure Odil with the examples:
(Note: Boost, ICU and JsonCpp have all been built with clang-cl as well)
Here are the linking issues displayed in the compilation log:
When listing the symbols of the library using
DUMPBIN /EXPORTS odil.lib
it looks like the symbols are not available:Do you have any idea on what I might be doing wrong?
Thanks a lot,
Clément