gcc missing header files on FatDog64 702 no math.h
Posted: Sun 10 Apr 2016, 18:37
Hello,
I'm trying to compile some simple C code on FatDog64 (latest ISO version 702) without luck. I've installed the latest gcc packages in the package manager (tried both gcc and gcc-full), but it appears some header files are missing? So far both limits.h and math.h complain.
Here's an example test case that fails to compile:
#include <math.h>
int main() {
return 0;
}
# gcc test.c
test.c:1:18: fatal error: math.h: No such file or directory
#include <math.h>
compilation terminated
The same error is produced using c++ and g++
Does anyone know if there is a another package I need to install that contains the missing header files or know how to fix this? I also can find cmath.h in no sub-directory of /usr. I'm hoping to get a working c/c++ compiler so I can polish of my fatdog remaster with the few things it doesn't have packages for already.
Thanks for any help you can offer.
Lance
I'm trying to compile some simple C code on FatDog64 (latest ISO version 702) without luck. I've installed the latest gcc packages in the package manager (tried both gcc and gcc-full), but it appears some header files are missing? So far both limits.h and math.h complain.
Here's an example test case that fails to compile:
#include <math.h>
int main() {
return 0;
}
# gcc test.c
test.c:1:18: fatal error: math.h: No such file or directory
#include <math.h>
compilation terminated
The same error is produced using c++ and g++
Does anyone know if there is a another package I need to install that contains the missing header files or know how to fix this? I also can find cmath.h in no sub-directory of /usr. I'm hoping to get a working c/c++ compiler so I can polish of my fatdog remaster with the few things it doesn't have packages for already.
Thanks for any help you can offer.
Lance