forum.alglib.net http://forum.alglib.net/ |
|
ALGLIB link errror http://forum.alglib.net/viewtopic.php?f=2&t=742 |
Page 1 of 1 |
Author: | hezhi [ Mon Dec 10, 2012 2:38 am ] |
Post subject: | ALGLIB link errror |
who can help me?where I can get alglib.cpp and alglib.h? Linking... main.obj : error LNK2001: unresolved external symbol "public: double & __thiscall alglib::real_1d_array::operator[](int)" (??Areal_1d_array@alglib@@QAEAANH@Z) main.obj : error LNK2001: unresolved external symbol "public: double const & __thiscall alglib::real_1d_array::operator[](int)const " (??Areal_1d_array@alglib@@QBEABNH@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall alglib::real_1d_array::~real_1d_array(void)" (??1real_1d_array@alglib@@UAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall alglib::minlmstate::~minlmstate(void)" (??1minlmstate@alglib@@UAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall alglib::minlmreport::~minlmreport(void)" (??1minlmreport@alglib@@UAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall alglib::real_1d_array::tostring(int)const " (?tostring@real_1d_array@alglib@@QBE?AV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) main.obj : error LNK2001: unresolved external symbol "void __cdecl alglib::minlmresults(class alglib::minlmstate const &,class alglib::real_1d_array &,class alglib::minlmreport &)" (?minlmresults@alglib@@YAXABVminlmstate@1@AAVreal_1d_array@1@AAVminl mreport@1@@Z) main.obj : error LNK2001: unresolved external symbol "void __cdecl alglib::minlmoptimize(class alglib::minlmstate &,void (__cdecl*)(class alglib::real_1d_array const &,class alglib::real_1d_array &,void *),void (__cdecl*)(class alglib::real_1d_array const &,double,void *),void *)" (?minlmoptimize@alglib@@YAXAAVminlmstate@1@P6AXABVreal_1d_array@1@AAV31@PAX@ZP6AX1N3@Z3@Z) main.obj : error LNK2001: unresolved external symbol "void __cdecl alglib::minlmsetcond(class alglib::minlmstate const &,double,double,double,int)" (?minlmsetcond@alglib@@YAXABVminlmstate@1@NNNH@Z) main.obj : error LNK2001: unresolved external symbol "void __cdecl alglib::minlmcreatev(int,class alglib::real_1d_array const &,double,class alglib::minlmstate &)" (?minlmcreatev@alglib@@YAXHABVreal_1d_array@1@NAAVminlmstate@1@@Z) main.obj : error LNK2001: unresolved external symbol "public: __thiscall alglib::minlmreport::minlmreport(void)" (??0minlmreport@alglib@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: __thiscall alglib::minlmstate::minlmstate(void)" (??0minlmstate@alglib@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: __thiscall alglib::real_1d_array::real_1d_array(char const *)" (??0real_1d_array@alglib@@QAE@PBD@Z) Debug/dfg.exe : fatal error LNK1120: 13 unresolved externals |
Author: | Sergey.Bochkanov [ Mon Dec 10, 2012 5:52 am ] |
Post subject: | Re: ALGLIB link errror |
I suppose that you included ALGLIB headers, but did not compiled cpp files. You should do both of the following: a) include appropriate ALGLIB header files into your program, b) compile all cpp files from the ALGLIB installation along with your program. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |