Conflicting types for fmin using gcc


jaabell3521
12-06-2006, 06:05 AM
I am attempting to use gcc from the MinGW load to compile a simple test program using

#include "math.h"
#include "nr.h"

It appears that the MinGW math library also has an fmin function (it appears to do a comparison and return the min of two float's) that generates the error.

Has anyone else seen this? What is the best approach to resolve?

Jeff

Saul Teukolsky
12-06-2006, 05:51 PM
Hi Jeff,

If you're not using a recipe that invokes fmin, it is fine to just comment it out in nr.h. If you are using fmin, you'll have to rename it to something else with your favorite editor.

Saul Teukolsky

jaabell3521
12-07-2006, 05:46 AM
Hi Saul,

Thanks for the note. I thought that may be the easiest remedy, although I will need to be careful when using other NRC's that might call (NRC) fmin - those calls will need to be updated as well.

regards

Jeff