On Wednesday, February 5, 2003, at 03:29 PM, John Clements wrote:
This is off-topic, but I'm hoping that someone can point out what an idiot I am.
Problem: I can't get gcc to recognize either the CPATH or C_INCLUDE_PATH environment variables. Here's what I mean:
It's customarily CFLAGS, but that's beside the point
[osterley:~] clements% less tmp.c #include <foo.h> void main(){return;} [osterley:~] clements% ls /Users/clements/temp foo.h [osterley:~] clements% echo $CPATH /Users/clements/temp: [osterley:~] clements% gcc tmp.c
you have to either explicitly bring in CFLAGS (or CPATH et.c) gcc $CFLAGS foo.c or use "make" (which uses $CFLAGS and $LDFLAGS by default) for instance [jeremy@callisto:~]$ more Makefile foo: foo.c [jeremy@callisto:~]$ make cc -Itemp foo.c -o foo foo.c: In function `main': foo.c:4: warning: return type of `main' is not `int' [jeremy@callisto:~]$ echo $CFLAGS -Itemp Jeremy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
