Including Standard search path problem.

Leo McManus leomcmanusir@yahoo.com
Wed Feb 18 08:51:00 GMT 2004


Building for an ARM 720 on an ARM Integrator board.

Am having a problem including standard include files in my eCos subdirectories
into my search path. Have used the '-I-' switch to search the directory for the
<cyg/kernel/kapi.h> header, but it gives a " No such file or directory" error,
(output below).

The kapi.h file is in
/Install/eCos4Usb/build/ecos-integrator/integrator_install/include/cyg/kernel
which I have put the '-I-' switch on. (NOTE just using '-I' I have the same
problem) but it connot find it.

My arm-elf-gcc -v output is:

Reading specs from /opt/gnutools/lib/gcc-lib/arm-elf/3.2.1/specs
Configured with: /Install/GnuTools/gcc-3.2.1/configure --target=arm-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-gxx-include-dir=/gnutools/arm-elf/include -v :
(reconfigured) /Install/GnuTools/gcc-3.2.1/configure --target=arm-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-gxx-include-dir=/opt/gnutools/arm-elf/include/ -v
Thread model: single
gcc version 3.2.1


HOW DO I INCLUDE THE ".../include/cyg" PATH TO SEARCH FOR MY STANDARD HEADER
FILES?

SHOULD I PUT THE SEARCH PATH ON THE CONFIGURATION LINE WHEN I BUILD THE GCC?
SO:

--with-gxx-include-dir=/opt/gnutools/arm-elf/include/: \
/Install/eCos4Usb/build/ecos-integrator/integrator_install/include


Compiler O/P:

arm-elf-gcc -c -mcpu=arm7tdmi -Wall -nostdinc -DARM_INTEGRATOR -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-fno-schedule-insns -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -finit-priority-fno-exceptions -fvtable-gc
-finit-priority 
-I/Install/eCos4Usb/build/ecos-integrator/UsbOtg/usbStack/source/include
-I-/Install/eCos4Usb/build/ecos-integrator/integrator_install/include/
-I/opt/gnutools/arm-elf/include
-I/opt/gnutools/lib/gcc-lib/arm-elf/3.2.1/include
/Install/eCos4Usb/build/ecos-integrator/UsbOtg/usbStack/source/arm.c

/Install/eCos4Usb/build/ecos-integrator/UsbOtg/usbStack/source/arm.c:26:30:
cyg/kernel/kapi.h: No such file or directory

Thanks

Leo


=====
Mobile Belgium: +32 (0)495 89 59 65
Contact in France:  +33 (0)476 275661

Registered Linux User Number 205935.
http://counter.li.org.


	
	
		
___________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk



More information about the Gcc-help mailing list