co_async icon indicating copy to clipboard operation
co_async copied to clipboard

code_assistant example 无法编译

Open zhangyi1357 opened this issue 1 year ago • 0 comments

if (PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
    file(GLOB example_sources examples/*.cpp)
+   list(REMOVE_ITEM example_sources ${PROJECT_SOURCE_DIR}/examples/code_assistant.cpp)
    foreach(path ${example_sources})
        get_filename_component(name ${path} NAME_WE)
        add_executable(${name} ${path})
        target_link_libraries(${name} PRIVATE co_async)
    endforeach()
endif()

code_assistant 中的代码无法编译,建议在 CMake 文件中添加以上行,暂时先不编译。

系统信息:

OS: Arch Linux on Windows 10 x86_64 
Kernel: 5.15.167.4-microsoft-standard-WSL2
Compiler: gcc version 14.2.1 20240910 (GCC)

zhangyi1357 avatar Nov 23 '24 01:11 zhangyi1357