将ASIO链接到Visual Studio中没有提升的项目
Linking ASIO to a project without boost in Visual Studio
我正在尝试在Visual Studio中为项目使用asio而不进行boost。
我通过在项目属性中的Additional Include Directories
中添加asioinclude
来添加标头。 这允许我的项目看到标题,并且智能感知正确找到所有对象。 目前为止,一切都好。
但是,当我尝试编译时,我收到找不到提升标头的错误,例如:
cannot open source file "boost/date_time/posix_time/posix_time_types.hpp" example-udpreceiver c:Usersmeprojectlibsasio-1.10.6includeasiodeadline_timer.hpp
或
cannot open source file "boost/regex/v4/match_flags.hpp" example-udpreceiver c:Usersmeprojectlibsasio-1.10.6includeasiodetailregex_fwd.hpp
我的印象是可以在没有 boost 的情况下使用 asio - 我需要做什么才能让 asio 编译我的项目?
谢谢!
您需要
定义ASIO_STANDALONE
宏以使 asio 在独立模式下正常工作。
相关文章:
- CMake 项目链接静态库
- 尝试使用 gradle 构建指向静态库的 c++ 项目链接时找不到头文件
- 将错误GoogleMock与我在linux下的C++项目链接
- 将OpenBLAS与Qt Creator项目链接
- 从大型 github 项目链接共享库
- 将TBB库与QTCreator与CMAKE项目链接
- 如何与Libm.so和libdl.so与我的Bazel项目链接
- 将C++项目与 Visual Studio 中的窗体项目链接
- GTEST测试项目链接链接到其他可执行文件
- Visual Studio,将项目链接在一起并进行测试
- 如何在Xcode4上从头开始构建C++项目-链接现有和新的外部库
- 我怎么能说视觉工作室将库与我的项目链接起来
- 添加类后项目链接错误
- CMake:从外部项目链接共享C++对象会生成具有相对路径的二进制文件,而不是绝对路径
- Netbeans/C++:将2个项目链接在一起(可执行文件/动态库)
- 裸机目标与cmake项目链接错误
- 使用lua lib的Xcode c++项目链接错误
- 试图从另一个项目链接类时出现链接器错误
- 如何将code::块设置为在目标链接器选项之前链接项目链接器选项
- 无法将一个项目的头和 CPP 文件与另一个项目链接 LNK2019:未解决的外部符号错误