Hi
I am building nco on Cygwin as the binaries seem a long way out of date.
I do a ./configure, then make. I am getting lots of errors saying M_PI is undeclared. I notice that the gcc calls use -std=c99, C99 does not include definitions of the mathematical constants like M_PI, so these need to be defined within the project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I thought math.h always defined M_PI. Clearly it doesn't on Cygwin. It appears to everywhere else. As you say, this is patch-able. Will post again when resolved.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure it is everywhere, perhaps it depends on the GCC version. See, e.g. http://ubuntuforums.org/showthread.php?t=583094
I seem to remember on visual studio you also have to add a specific #define before including the math libraries to get it too.
Anyway, thanks for looking into it
Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I am building nco on Cygwin as the binaries seem a long way out of date.
I do a ./configure, then make. I am getting lots of errors saying M_PI is undeclared. I notice that the gcc calls use -std=c99, C99 does not include definitions of the mathematical constants like M_PI, so these need to be defined within the project.
I thought math.h always defined M_PI. Clearly it doesn't on Cygwin. It appears to everywhere else. As you say, this is patch-able. Will post again when resolved.
Not sure it is everywhere, perhaps it depends on the GCC version. See, e.g. http://ubuntuforums.org/showthread.php?t=583094
I seem to remember on visual studio you also have to add a specific #define before including the math libraries to get it too.
Anyway, thanks for looking into it
Phil