| Can't include headers in additional include paths [message #804318] |
Wed, 22 February 2012 08:26  |
Pooria Gh Messages: 2 Registered: February 2012 |
Junior Member |
|
|
I'm using eclipse Indigo for windows on windows 7 32-bit and a toolchain based on ARM cross compile toolchain which has the version of glibc-2.9 gcc-4.3.4. My project is currently in C but I'm willing to change it to C++ anytime if necessary; its configurations you might want to know are as follows.
In "C/C++ build->settings" section in project properties I gave the path "/cygdrive/c/glibc-oabi-toolchain-arm-generic/bin/arm-unknown-linux-gnu-gcc" for "GCC C Compiler" and "GCC C Linker" and "GCC Assembler" in their command boxes and set some miscellaneous parameters for compiler and linker. Then in the "C/C++ build->Tool Chain Editor" section the "Current builder" is set to "Gnu Make Builder" and the "Current toolchain" is set to "Linux GCC".
Now the issue is I don't seem to be able to set additional include paths properly since although I've added a path like "c:\sdk\include" to "C/C++ build->settings->GCC C Compiler->Includes" section and this path is also automatically added to "C/C++ General->Paths and Symbols->Includes" section and there's a header like "stdio.h" in that path I encounter the following error
unresolved inclusion:<stdio.h>
for following line of code
Finally if it might be of any help the miscellaneous parameters I set for compiler are:
"-Wundef -Wstrict-prototypes -Werror-implicit-function-declaration -Wdeclaration-after-statement -fsigned-char -marm -mapcs -march=armv5te -mtune=arm9tdmi -mno-sched-prolog -mabi=apcs-gnu -mlittle-endian -mno-thumb-interwork -msoft-float -c"
And miscellaneous parameter set for linker are:
"-marm -mapcs -march=armv5te -mtune=arm9tdmi -mno-sched-prolog -mabi=apcs-gnu -mlittle-endian -mno-thumb-interwork -msoft-float -Wl,-Map,"${PWD}/${ProjName}.map"
Any advise on what might be the cause of problem is appreciated, thanks.
|
|
|
|
| Re: Can't include headers in additional include paths [message #825868 is a reply to message #804318] |
Wed, 21 March 2012 07:02  |
Axel Mueller Messages: 1828 Registered: July 2009 |
Senior Member |
|
|
The error message about unresolved inclusion comes from the internal indexer. On one side you are using an arm cross compiler under Cygwin for the build but then the you set the toolchain to "Linux GCC" in C/C++ build->Tool Chain Editor. So Eclipse will look for the Linux gcc compiler and tries to find the includes. You should set the toolchain to Cygwin gcc and in C/C++ build->Discovery options you should adapt the compiler invocation command to "arm-unknown-linux-gnu-gcc".
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
Powered by
FUDForum. Page generated in 0.05261 seconds