Skip to content
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

code_assistant example 无法编译 #15

Open
zhangyi1357 opened this issue Nov 23, 2024 · 0 comments
Open

code_assistant example 无法编译 #15

zhangyi1357 opened this issue Nov 23, 2024 · 0 comments

Comments

@zhangyi1357
Copy link

zhangyi1357 commented Nov 23, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant