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:

[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
tmp.c:1: header file 'foo.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
[osterley:~] clements% ls a.out
ls: a.out: No such file or directory


This is tcsh, so I don't need to worry about exporting the variables. I've also tried with "foo.h", no trailing colons on the paths, trailing slashes on the paths ... I just can't figure out why gcc can't find the include file.

Please, please, someone point out my idiotic mistake.

TIA,

john clements



-------------------------------------------------------
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

Reply via email to