-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
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
Unresolved external symbols when building with batch mode on Windows #1645
Comments
I can reproduce the same or similar issue. This is with MSVC 2022 either with clang compiler supplied with it or with intel one api compiler. liboslexec/wide/wide_opcolor.cpp:
This function is inline function implemented in included opcolor_impl.h. |
It was a few different issues. Unnecessary dllimport function attribute was causing the issue I showed above and many similar issues. Then, functions definitions in headers followed by unused code that called those functions seemed to be generating unresolved external symbol errors. And then there were some functions like to_rgb() mentioned above which was called from wide/wide_opcolor.cpp and implemented in opcolor.cpp, but opcolor.cpp didn't seem to be compiled into the batched dll. Not sure why those only gave issues in MSVC environment, maybe they are just never called in any tests and would generate errors at runtime if they were. I just commented those out for now. I might make a patch for this at some point. |
Problem
Building with
USE_BATCHED
options on Windows fails due to unresolved external symbols.Expected behavior:
Successful build with
USE_BATCHED
option.Actual behavior:
There are quite a few unresolved symbols, here are a few representative ones when using
USE_BATCHED=b8_AVX
:Steps to Reproduce
-D USED_BATCHED=b8_AVX
build flagVersions
The text was updated successfully, but these errors were encountered: