Hello:
I am using a TS-7260 with the standard linux. In order to compile my programs I
use a cross-compiler downloaded from the ftp repository. The problem I am
facing is that I am not able to compile projects that has header files in other
subdirectories. let's say
.../project/header (subdirectory containing header files)
.../project/ (directory containing source file)
piece of code for source file.c
....
#include "header/file.h"
....
when I try to compile it like this:
:~/Desktop/hasp$
/home/damian/Desktop/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
main_adc.c -o adc -mcpu=arm9 -Wall
I got the following output:
/home/damian/Desktop/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/bin/ld:
cannot open output file adc: Is a directory
collect2: ld returned 1 exit status
I have also tried using the -iquote option and set the path of dir to
..../project/header
However the output is as follows:
cc1: error: unrecognized option `-iquote'
any idea on how to add several header files ,diferent located to my project?
thanks Damian
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|