-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
fatal error C1083: 无法打开包括文件: “mysql.h”: No such file or directory #43417
Comments
Please provide the cmakelists.txt and simple cpp you used for testing. |
int main()
} |
add_executable(${TGT} ${DIR_SRCS}) target_compile_definitions(${TGT} PRIVATE -DPROJECT_SOURCE_DIR="${CMAKE_SOURCE_DIR}") set_target_properties(${TGT} PROPERTIES LINKER_LANGUAGE CXX) [cmake] sqlpp11 provides CMake targets:[cmake][cmake] find_package(Sqlpp11 CONFIG REQUIRED COMPONENTS MySQL)[cmake] target_link_libraries(main PRIVATE sqlpp11::mysql)find_package(fmt CONFIG REQUIRED) find_package(Sqlpp11 CONFIG REQUIRED COMPONENTS MySQL) |
Can you post your C++ code? I don't know which header files you referenced. |
I change this:#include <mysql/mysql.h>,cmake successed! |
above error code : |
help me! thinks!!! |
Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
Failure logs
[build] E:\develop\candcpp\cmakedemo\out\build\vs2022_x64\vcpkg_installed\x64-windows-static-md\include\sqlpp11/mysql/sqlpp_mysql.h(29,10): fatal error C1083: 无法打开包括文件: “mysql.h”: No such file or directory
Additional context
Host Environment
Host: x64-windows
Compiler: MSVC 19.31.31106.2
vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
vcpkg-scripts version: b2cb0da 2024-11-15 (9 weeks ago)
The text was updated successfully, but these errors were encountered: