You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在macOS上使用Clang 15.0.0编译Asio 1.30.2时遇到编译问题

在macOS上使用Clang 15.0.0编译Asio 1.30.2时遇到编译问题

我正在Mac(Sonoma 14.6.1 (23G93))上开发一个C++项目,想使用Asio 1.30.2版本。我的开发环境具体信息如下:

  • 编译器:Apple clang version 15.0.0 (clang-1500.3.9.4)
  • 目标架构:x86_64-apple-darwin23.6.0
  • 平台:posix
  • CMake版本:3.28

下面是我的CMakeLists.txt里的相关代码片段:

cmake_minimum_required(VERSION 3.28)
project(CPP_Framework)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_subdirectory(${CMAKE_SOURCE_DIR}/module/actor-framework-1.0.1)

include_directories(${CMAKE_SOURCE_DIR}/module/asio-1.30.2/include)
#include_directories(${CMAKE_SOURCE_DIR}/module/boost_1_85_0)
#include_directories(${CMAKE_SOURCE_DIR}/module/actor-framework-1.0.1/libcaf_core)
include_directories(${CMAKE_SOURCE_DIR}/source)

file(GLOB_RECURSE SOURCES "${CMAKE_SOURCE_DIR}/source/*.cpp")

# CMa...

备注:内容来源于stack exchange,提问作者DOYEOP KIM

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 08:15:29