Sujet : Re: Can't build TclTLS 2.0b1
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 08. Jul 2025, 18:08:34
Autres entêtes
Message-ID : <ygafrf6zk31.fsf@akutech.de>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Ashok <
apnmbx-public@yahoo.com>
| So I'm guessing that /usr/include is already in the default system
| include search path and therefore gets ignored when specified as the
| -I
| option. Additionally, /usr/local/include appears before /usr/include
| in the default search path. That might explain what you are seeing.
https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directoriessuggests to use
echo | gcc -xc -E -v -
to see the defaults plus any effect of environment variables like CPATH
% echo | gcc -xc -E -v -
[...]
#include "..." search starts here:
#include <...> search starts here:
/usr/lib64/gcc/x86_64-suse-linux/7/include
/usr/local/include
/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
/usr/include
End of search list.
So indeed /usr/local/include is listed *before* /usr/include.
One could use -isystem/usr/include to change that order:
% echo | gcc -isystem/usr/include -xc -E -v -
[...]
#include "..." search starts here:
#include <...> search starts here:
/usr/include
/usr/lib64/gcc/x86_64-suse-linux/7/include
/usr/local/include
/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
End of search list.
HTH
R'