This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Including Standard search path problem.


-I- is an argument in its own right - that is, it has a different meaning than -I, and you can't specify a directory after it.  You need to use -I followed by your path.  If it's not finding the file then, then double check your path for typos.  For example, if you simply copy and paste the path followed by /cyg/kernel/kapi.h and give that to the ls command, does it list your file?

If so, I'm not sure what to say, but either way, using -I- like you are is not correct.

Good luck,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Leo McManus
Sent: Wednesday, February 18, 2004 1:51 AM
To: ecos-discuss@sources.redhat.com; gcc-help@gcc.gnu.org
Subject: Including Standard search path problem.

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

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]