gfortran gcc can't find stdlib.h
FX Coudert
fxcoudert@gmail.com
Mon Aug 14 21:31:00 GMT 2006
> $ gcc -I/usr/include -c natmath.c
> natmath.c:13:20 error: stdlib.h: No such file or directory
> natmath.c:14:18 error: stdlib.h: No such file or directory
>
> Contents of natmath.c (some comments excluded):
> #include <stdlib.h>
> #include <math.h>
>
> and yes, /usr/include/stdlib.h does exist.
>
> Any ideas what's going on here?
I think you might just want to use "gcc -I /usr/include -c natmath.c"
(notice the space after -I), so that MSYS (I assume you use MSYS,
although you don't say so) translates the path to a native Windows path
(C:\wherever\usr\include). Does that fix it?
FX
More information about the Fortran
mailing list