Including source files from another C++ project in Eclipse CDT

前端 未结 4 1295
离开以前
离开以前 2021-02-04 06:57

I have a C++ project in Eclipse CDT which uses some functions from OpevCV and it compiles into an executable and works fine. Now I want to have a new C++ project which uses some

4条回答
  •  [愿得一人]
    2021-02-04 07:20

    Go to Project->Properties->C/C++ general->Paths and Symbols. Select the 'Source Location' tab and click the 'Link Folder...' button. You should be able to select the directory containing the project you want to reference. All the source files for that project will be included in your current project. Works for me anyway.

提交回复
热议问题