drogonframework / drogonframework/drogon

Compile bug report when using Clang in Windows system

Open
#2,222 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.