ca2004
09-16-2010, 12:58 PM
Hi everyone
I am compiling the xmrqmin.cpp example to do a fitting. So, when I try to compile the example in linux, appear a following error:
In file included from nr_meu.h:7,
from xmrqmin.cpp:5:
nrutil_nr.h: In function ‘void NR::nrerror(std::string)’:
nrutil_nr.h:56: error: ‘exit’ was not declared in this scope
and into of the nrutil_nr.h file, the line 56 corresponds to:
namespace NR {
inline void nrerror(const string error_text)
// Numerical Recipes standard error handler
{
cerr << "Numerical Recipes run-time error..." << endl;
cerr << error_text << endl;
cerr << "...now exiting to system..." << endl;
exit(1);
}
}
I don't know what is causing the error or if something is missing?
I would like your help.
Thanks,
Manuel
I am compiling the xmrqmin.cpp example to do a fitting. So, when I try to compile the example in linux, appear a following error:
In file included from nr_meu.h:7,
from xmrqmin.cpp:5:
nrutil_nr.h: In function ‘void NR::nrerror(std::string)’:
nrutil_nr.h:56: error: ‘exit’ was not declared in this scope
and into of the nrutil_nr.h file, the line 56 corresponds to:
namespace NR {
inline void nrerror(const string error_text)
// Numerical Recipes standard error handler
{
cerr << "Numerical Recipes run-time error..." << endl;
cerr << error_text << endl;
cerr << "...now exiting to system..." << endl;
exit(1);
}
}
I don't know what is causing the error or if something is missing?
I would like your help.
Thanks,
Manuel