Dave
gnu (haven't started on intel yet)
> gcc --version
gcc (GCC) 3.3.3 (SuSE Linux)
1) -ansi -pedantic and -std
> gcc -Wall -ansi -pedantic -std=gnu99 -O3 -fexpensive-optimizations -I. -I/home/
nkilleen/dmf/software/fsl/4.0/fsl/include -I/home/nkilleen/dmf/software/fsl/4.0/fsl/include -c
-o xmath.o xmath.c
xmath.c: In function `Xisnan':
xmath.c:3: warning: implicit declaration of function `isnan'
xmath.c: In function `Xisfinite':
xmath.c:4: warning: implicit declaration of function `isfinite'
2) -ansi -std
gcc -Wall -ansi -std=gnu99 -O3 -fexpensive-optimizations -I. -I/home/nkilleen/dmf/
software/fsl/4.0/fsl/include -I/home/nkilleen/dmf/software/fsl/4.0/fsl/include -c -o xmath.o
xmath.c
xmath.c: In function `Xisnan':
xmath.c:3: warning: implicit declaration of function `isnan'
xmath.c: In function `Xisfinite':
xmath.c:4: warning: implicit declaration of function `isfinite'
3) -std only
> gcc -Wall -std=gnu99 -O3 -fexpensive-optimizations -I. -I/home/nkilleen/dmf/software/
fsl/4.0/fsl/include -I/home/nkilleen/dmf/software/fsl/4.0/fsl/include -c -o xmath.o xmath.c
brings no warning.
I remarked about CMake because in the cprob directory
there is a CMakeLists.txt so I assume that you were generating
the Makefile via CMake
cheers
Neil
|