nr.h and math.h on OSX


schnozmeiser
05-05-2003, 02:17 PM
We've been using NR on pc and mac (10.1) for a while now, and moving along and compiling with gcc on OSX 10.2.5 results in an error.

The error is:
"... conflicting type for 'fmin' "
"... previous declaration of 'fmin' "

Where fmin is defined in math.h in the system libraries, as well as nr.h. I already tried -ansi, but it doesn't resolve the issue. I tried that after read a previous post with similar problems.

Is math.h from Apple non-ANSI-compliant? Any tips? Thanks!

riprock99
08-19-2003, 10:32 PM
I also am having this issue, with OS X 10.2.6. Has anyone identified a solution?

Many thanks,

S-

Sherlock
11-22-2003, 05:54 PM
This question is addressed in the thread error compiling broydn.c & newt.c. It relates to a conflict with a function name in the POSIX standard.