-
Notifications
You must be signed in to change notification settings - Fork 240
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
CMake on Windows - missing linker symbols #481
Comments
There really isn't supposed to be a So the real question is: what code is looking for that specialisation? Is it possible that you were passing an |
Ahem. I meant: is it possible that you were passing a |
This is a code fragment that causes the issue. The interesting fact is when I use inline value it needs five symbols instead of 2 (like in case of std::string var)...
For uchar case it shows such symbols:
|
I tried to build it on Arch linux (Manjaro) also and it fails as well.
vcpkg config has no any special deps:
I was building it using g++ in version 11.1.0. Build options are like below (tested also with 17 and exts):
|
So yes, standard type that gets typedef'ed to
|
I was able to build it on Linux as well as on Windows also. I will check docker image yet (two stage build based on alpine/musl), but it should be ok also... Thanks for the hint! |
Good question! The problem with signed/unsigned If you'd asked me 20 years ago whether It's probably worth building in a trick to make this situation produce a more helpful error message. |
Yes, it's a bit problematic. Probably some trait should be added to spec yet as char type is treated as num here instead of "character based data class": |
In any case... did the |
Yes, thanks. It resolved the issue. |
I'll merge a fix for a better error message, and that will automatically close this ticket. Thanks for reporting. |
When I use
work.exec_prepared1
method on linux it can be build without any problems. When I build the same project on Windows (using CMake with Microsoft Visual C++ 2019) it complains about missing symbols like below:Is it possible to fix it without waiting for a new version (by providing some template specializations)?
I tried to add something like below, but it didn't work. The message related to it is below the def...
The text was updated successfully, but these errors were encountered: