Re: How to declare header location?: SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 16 February 2003 09:31 am, Michael Schwendt wrote:
> On Sun, 16 Feb 2003 07:10:31 -0500, Michael Fratoni wrote:

> The preprocessors are in package "cpp". One Phoebe 8.0.93, the
> problem is not reproducible. Are you sure, you didn't install a
> newer cpp from any place?

I don't believe so:
$ rpm -q cpp
cpp-3.2-7

> Here's a manual test:
>
>   $ echo "#include <X11/xpm.h>" > t.c
>   $ cpp -I/usr/local/include t.c >/dev/null
>   cpp0: warning: changing search order for system directory
> "/usr/local/include" cpp0: warning:   as it has already been specified
> as a non-system directory

mfratoni@paradox mfratoni]$ echo "#include <X11/xpm.h>" > t.c
[mfratoni@paradox mfratoni]$ cpp -I/usr/local/include t.c >/dev/null

No warnings at all.

> The following should tell whether /usr/local/include is in your
> standard header search path:
>
>   $ cpp -v </dev/null

[mfratoni@paradox mfratoni]$ cpp -v </dev/null
[snip]
GNU CPP version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (cpplib) (i386 
Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i386-redhat-linux/3.2/include
 /usr/include
End of search list.

I don't have a /usr/local/include directory on my machine, so it is 
ignored. Creating the directory causes the problem to appear.

Thanks for the help!
- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+T6XJn/07WoAb/SsRAuyEAKCUVj0fgsr62gNmDVxL8CPF/twCUgCfRa0Z
YQLQBjPDHimZh+/fCEod4Y0=
=E18E
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux