On Wednesday, February 5, 2003, at 12:53  PM, Jeremy Erwin wrote:

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

No, there are also env vars CPATH and C_INCLUDE_PATH which are documented in "man gcc" that he should NOT have to specify himself. The automake standard CFLAGS is not related. CPATH/C_INCLUDE_PATH should work.

CPATH
C_INCLUDE_PATH
CPLUS_INCLUDE_PATH
OBJC_INCLUDE_PATH
Each variable's value is a list of directories sepa-
rated by a special character, much like PATH, in which
to look for header files. The special character,
"PATH_SEPARATOR", is target-dependent and determined
at GCC build time. For Windows-based targets it is a
semicolon, and for almost all other targets it is a
colon.

CPATH specifies a list of directories to be searched
as if specified with -I, but after any paths given
with -I options on the command line. The environment
variable is used regardless of which language is being
preprocessed.

The remaining environment variables apply only when
preprocessing the particular language indicated. Each
specifies a list of directories to be searched as if
specified with -isystem, but after any paths given
with -isystem options on the command line.

-Ben



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