We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
I'm using CLI11 in a CMake project on Windows with:
# Don't link implicitly with gdi32.lib, winspool.lib, shell32.lib, etc # https://stackoverflow.com/questions/41400536/why-cmake-adds-unnecessary-libraries-to-visual-studio-projects set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "") set(CMAKE_CXX_STANDARD_LIBRARIES "")
This causes a linker error:
error LNK2019: unresolved external symbol __imp_CommandLineToArgvW referenced in function CLI::detail::compute_win32_argv(void)
Since CLI11 uses CommandLineToArgvW() it shouldn't rely on Shell32.lib being implicitly linked and instead do it explicitly.
CommandLineToArgvW()
Best regards, Nikolai
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
I'm using CLI11 in a CMake project on Windows with:
This causes a linker error:
Since CLI11 uses
CommandLineToArgvW()
it shouldn't rely on Shell32.lib being implicitly linked and instead do it explicitly.Best regards,
Nikolai
The text was updated successfully, but these errors were encountered: