On Montag, 6. April 2020, 02:20:34 CEST andy pugh wrote:
> Further oddness, trying with thermistor.comp in user_comps, first with
> plain gcc and minimal options:
>
> gcc -I/home/andypugh/linuxcnc-dev/include/ -DULAPI -H thermistor.c
>
> Seems OK (up to the point that it can't find HAL). It finds stddef /
> stddarg / spawn with no difficulty.
>
> However, same system, same file
Hi Andy,
I guess, its the "-nostdinc" option.
gcc-manual says:
----------<snip>---------------
-nostdinc
Do not search the standard system directories for header files. Only the
directories explicitly specified with -I, -iquote, -isystem, and/or -idirafter
options (and the directory of the current file, if appropriate) are searched.
---------<snap>---------------
So with that option you have to specify, where the compiler should take each
header from.
cheers Reinhard
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers