ISO C++ error


farmerdoug
05-25-2010, 07:22 AM
Copied .h files into Xcode; got the following error on compiling. This error is from krig.h All includes are
#include "nr3.h"
#include "interp_1d.h"
#include "interp_linear.h"
#include "interp_2d.h"
#include "krig.h"

ISO C++ forbids declaration of LUdcmp with no type.

Suggestions?

thanks.

davekw7x
05-25-2010, 08:24 AM
...
#include "nr3.h"
#include "interp_1d.h"
#include "interp_linear.h"
#include "interp_2d.h"
#include "krig.h"

ISO C++ forbids declaration of LUdcmp with no type.


Check the masterdependency list (http://www.nr.com/dependencies/masterdependency.txt)

Then put

#include <ludcmp.h> before <#include krig.h>


Regards,

Dave

farmerdoug
05-25-2010, 09:12 AM
Thanks.

It seems that I missed adding LUdcmp.h. Me or a mistake in nr.com/declarations.