ts-7000
[Top] [All Lists]

[ts-7000] problem including header files from other directories with cro

To:
Subject: [ts-7000] problem including header files from other directories with cross-compiler
From: "Damian" <>
Date: Sat, 30 Jun 2012 21:52:06 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU