Guro
10-12-2006, 11:36 AM
Hello,
I use the lfit function in another class then main.cpp : session.cpp. I have defined my void funcs(const DP x, Vec_O_DP &afunc) function in the same class, but when I call lfit, I get this error message :
lfit' : cannot convert parameter 8 from 'void (const double,class NRVec<double> &)' to 'void (__cdecl *)(const double,class NRVec<d
ouble> &)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
What is the problem? Where should I define funcs?
Thank you for your answer.
I use the lfit function in another class then main.cpp : session.cpp. I have defined my void funcs(const DP x, Vec_O_DP &afunc) function in the same class, but when I call lfit, I get this error message :
lfit' : cannot convert parameter 8 from 'void (const double,class NRVec<double> &)' to 'void (__cdecl *)(const double,class NRVec<d
ouble> &)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
What is the problem? Where should I define funcs?
Thank you for your answer.