* RE: Including Standard search path problem.
@ 2004-02-18 17:24 lrtaylor
0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2004-02-18 17:24 UTC (permalink / raw)
To: LeoM, ecos-discuss, gcc-help
-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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Including Standard search path problem.
@ 2004-02-18 8:51 Leo McManus
0 siblings, 0 replies; 2+ messages in thread
From: Leo McManus @ 2004-02-18 8:51 UTC (permalink / raw)
To: ecos-discuss, gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-18 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 17:24 Including Standard search path problem lrtaylor
-- strict thread matches above, loose matches on Subject: below --
2004-02-18 8:51 Leo McManus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).