Re: Re: [coldfire-gnu-discuss] GCC -I option seems to not work !?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [coldfire-gnu-discuss] GCC -I option seems to not work !?
- To: Claude Sylvain <csylvain@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Re: [coldfire-gnu-discuss] GCC -I option seems to not work !?
- From: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Date: Sun, 10 Dec 2006 01:10:14 -0500
On Sat, Dec 09, 2006 at 10:35:51PM -0500, Claude Sylvain wrote:
> project
> \---obj
> \---out
> \---src
> \---drivers
> | \---ethernet
> \---startup
> \---support
Paths for -I are not relative to the source file. They're relative to
the current directory. If you need to say "./src/main.c", then you
need to say "-I./src/drivers".
Try adding the -v option to CFLAGS to see what paths GCC is searching.
--
Daniel Jacobowitz
CodeSourcery