-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 symbol when using a string_view inside a REQUIRE #2605
Comments
Added a minimum reproducible example: To compile: > conan install . --build=missing
> cmake configure . --preset='default'
> cmake --build --preset=release The presets are the one generated by conan. |
On Linux, specifically WSL2, Ubuntu 24.04 LTS:
|
I had the same issue with MSVC. It happened because Conan was building Catch2's static libraries with Note: clang currently also defaults to c++14. FixMake sure to specify the c++ standard of your project in the Directly on the command line: # For c++20 projects
conan install .. --build=missing -s compiler.cppstd=20 Or add More info: Conan: How to manage C++ standard |
Sorry, didn't use my personal GitHub since ages. I'm stunned of discovering this behaviour of conan, the first thing I'll do on monday will be to update all my recipes! |
Describe the bug
If I try to link my tests that contain a REQUIRE clause with a string_view, I got this linker error:
Expected behavior
I expect to link without problems.
Reproduction steps
Platform information:
Microsoft Visual Studio Professional 2022 (64-bit) - LTSC 17.2 Version 17.2.10
MSCV 19.32.31335
Additional context
I don't know if it's Conan or something that happened to Catch, but my tests didn't have this problem months ago.
Now that I've migrated from vcpkg to Conan, this problem showed up.
At the moment I don't have time to provide a minimum example nor to check a previous version of Catch.
I'll try in my free time after work, but it means a lot of hours :P
The text was updated successfully, but these errors were encountered: