[coldfire-gnu-discuss] GCC -I option seems to not work !?
Daniel Jacobowitz
dan at codesourcery.com
Sun Dec 10 06:10:14 UTC 2006
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
More information about the coldfire-gnu-discuss
mailing list