Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#38177 - [eclipse-cdt] Eclipse CDT uses wrong include paths
Attached to Project:
Community Packages
Opened by Dan Liew (delcypher) - Tuesday, 17 December 2013, 15:16 GMT
Last edited by Balló György (City-busz) - Friday, 10 January 2014, 12:26 GMT
Opened by Dan Liew (delcypher) - Tuesday, 17 December 2013, 15:16 GMT
Last edited by Balló György (City-busz) - Friday, 10 January 2014, 12:26 GMT
|
DetailsDescription:
Eclipse CDT seems to be assuming that I'm using gcc 4.8.1, when in fact I have gcc 4.8.2 so it looks for the C++ library in the wrong place. This means Eclipses editor cannot resolve many C++ standard library types such as std::vector<int> Additional info: * Eclipse 4.3.1-1 * Eclipse CDT 8.2.1-1 * gcc 4.8.2 Steps to reproduce: 1. Start Eclipse 2. File > New > Makefile project with existing code. Use an existing project src. I used the source from LLVM 2.9 [1] 3. Select toolchain as "GNU Autotools chain" 4. Let Eclipse index Now under the problems tab you will see warnings like... ``` Description Resource Path Location Type Invalid project path: Include path not found (/usr/include/c++/4.8.1). llvm29 pathentry Path Entry Problem ``` and uses of Eclipse's editor will not be able to resolve things like std::vector<int> [1] http://llvm.org/releases/2.9/llvm-2.9.tgz |
This task depends upon
/usr/include/c++/4.8.1
/usr/include/c++/4.8.1/backward
/usr/include/c++/4.8.1/x86_64-unknown-linux-gnu
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/fixed
Doing s/4.8.1/4.8.2/ would give the correct paths. For now I've just manually added the right paths in the project's settings. (Project Settings > C/C++ General > Paths and Symbols , under includes tab)