How do I include a statically linked library in my Eclipse C++ project?

前端 未结 2 566
無奈伤痛
無奈伤痛 2020-12-16 06:01

I have an open-source library that\'s distributed in source form. After I run the Makefile, I end up with a .h file and a .a file that I then want

相关标签:
2条回答
  • 2020-12-16 06:19

    How do I add an external library to my C++ project?

    Go to Your Project's Properties by right clicking on project's name and selecting properties. Click on "C/C++ Build". Under Settings->Tool Settings Tab, click on GCC C Linker / Libraries. Then add a library and a search path.

    0 讨论(0)
  • 2020-12-16 06:20

    right click on the project name in the project explorer with the project being opened, select project properties. Then select C/C++ General -> Paths and Symbols -> includes -> GNU C++ and add the path to your header file. You should do the same for you library under : C/C++ General -> Paths and Symbols -> Libraries -> Add , and add your library file path.

    0 讨论(0)
提交回复
热议问题