ts-7000
[Top] [All Lists]

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

To: "" <>
Subject: Re: [ts-7000] problem including header files from other directories with cross-compiler
From: Damian Miralles <>
Date: Sun, 1 Jul 2012 12:44:00 -0700 (PDT)


Hello:
thank you, that was my mistake, I was trying to create an executable with the name of a directory, and that was the compiler message. I really thank full for your help, it was great!!!
Damian


From: Rich Wilson <>
To:
Sent: Sunday, July 1, 2012 2:07 PM
Subject: Re: [ts-7000] problem including header files from other directories with cross-compiler

 
First, I would get rid of (or rename) the directory named adc. Perhaps your compile will work then.
If it doesn't, you might need to add something like 
-I.
to the compile line. That's a capital I (eye). But I think it should already look in the directory where your source file is.

On Sat, Jun 30, 2012 at 2:52 PM, Damian <m("yahoo.com","dmiralles2009");" target="_blank" href="">> wrote:
 
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




--
Rich Wilson
m("gmail.com","richaw");" target="_blank" href="">
425-337-7129 (land line)
425-374-4760 (Google)






__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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