Subject: Re: include and library paths
From: Chris Faylor <[email-masked]>
To: Ian T Zimmerman <[email-masked]>
Cc: [email-masked]
Date: Thu, 1 Jul 1999 16:51:54 -0400

On Thu, Jul 01, 1999 at 08:19:57PM +0000, Ian T Zimmerman wrote:
>>>>>> "Chris" == Chris Faylor <[email-masked]> writes:
>
>    Chris> On Thu, Jul 01, 1999 at 06:52:08PM +0000, Ian T Zimmerman
>    Chris> wrote:
>    >> Hi, do the C_INCLUDE_PATH and LIBRARY_PATH envars work as
>    >> advertised (and as they work on Unix installataions of gcc &
>    >> friends)?
>    >> 
>    >> I do this:
>    >> 
>    >> amazon:~$ printenv C_INCLUDE_PATH
>    >> /usr/X11R6.4/LessTif/Motif2.0/include/:/usr/X11R6.4/include/
>    >> amazon:~$ ls -l /usr/X11R6.4/include/X11/Intrinsic.h -r--r--r--
>    >> 1 administ None 73459 Nov 3 1998
>    >> /usr/X11R6.4/include/X11/Intrinsic.h amazon:~$ cat
>    >> stupid_test.c #include <X11/Intrinsic.h> amazon:~$ gcc -E
>    >> stupid_test.c stupid_test.c:1: X11/Intrinsic.h: No such file or
>    >> directory # 1 "stupid_test.c"
>
>    Chris> Try doing a "gcc -v -E stupid_test.c" to see what libraries
>    Chris> are being searched.
>
>amazon:~$ gcc -v -E stupid_test.c
>Reading specs from d:\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\specs
>gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
> d:\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\cpp.exe -lang-c -v -iprefix d:\C
>YGWIN~1\H-I586~1\bin\..\lib/gcc-lib/i586-cygwin32\egcs-2.91.57\ -undef -D__GNUC__=2 -D__GNUC_MINOR__
>=91 -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdec
>l=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X
>86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_
>_declspec(x)=__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -rema
>p -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pe
>ntium -D__pentium__ -D__CYGWIN32__ -D__CYGWIN__ stupid_test.c
>GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (80386, BSD syntax)
>#include "..." search starts here:
>#include <...> search starts here:
> d:\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\..\include
> d:\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\includ
>e
> d:\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\include
> \cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\..\include
> \cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32
>\include
> \cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\include
> \usr\include
>End of search list.
>stupid_test.c:1: X11/Intrinsic.h: No such file or directory
># 1 "stupid_test.c"
>
>amazon:~$

Ok, next, how about a:

ls /usr/X116.4/LessTif/Motif2.0/include /usr/X11R6.4/include

?

If those work then I'll leave this to Mumit to comment.

-chris

--
Want to unsubscribe from this list?
Send a message to [email-masked]