Skip to content
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

Compile bug report when using Clang in Windows system #2222

Open
ysyecust opened this issue Dec 6, 2024 · 0 comments
Open

Compile bug report when using Clang in Windows system #2222

ysyecust opened this issue Dec 6, 2024 · 0 comments

Comments

@ysyecust
Copy link

ysyecust commented Dec 6, 2024

I installed the drogon library with vcpkg, but when compiling with clang in my project, vcpkg uses msvc to compile the "\wd4251 \wd4275" introduced by drogon, and it causes a compilation error.

[build] C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DFMT_SHARED -DNOMINMAX -IC:/Users/YSY_e/Documents/code/simona2/build -isystem C:/vcpkg/installed/x64-windows/include -O0 -g -Xclang -gcodeview -std=c++20 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -finput-charset=UTF-8 /wd4251 /wd4275 -MD -MT simona2/communication/CMakeFiles/controller.dir/src/http_message_handler.cpp.obj -MF simona2\communication\CMakeFiles\controller.dir\src\http_message_handler.cpp.obj.d -o simona2/communication/CMakeFiles/controller.dir/src/http_message_handler.cpp.obj -c C:/Users/YSY_e/Documents/code/simona2/simona2/communication/src/http_message_handler.cpp
[build] clang++: error: no such file or directory: '/wd4251'
[build] clang++: error: no such file or directory: '/wd4275'

https://github.com/drogonframework/drogon/blob/3e944d28d8c6c438a69d15e8ede6f986126e217f/CMakeLists.txt#L76C69-L76C69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant