Eclipse下运行C/C++程序编译时包含*.h(headers)

来源:互联网 发布:文明的冲突 知乎 编辑:程序博客网 时间:2024/05/18 01:48

http://stackoverflow.com/questions/15935207/adding-header-files-to-eclipse-build-path-for-c

Left-click your project and choose Properties, then go to the following section:C/C++ General, and then Paths and Symbols, then select Includes tab, in Languages list choose GNU C++ (or whichever toolchain is your current). Now you can seeAdd... button to the very right, click it and provide a path to the directory which contains includes, for example:D:\Libraries\MiniXML\include. Don't forget to check the Add to all configurations checkbox. That's it, we are done.


0 0
原创粉丝点击