forum.alglib.net

ALGLIB forum
It is currently Tue Nov 26, 2024 5:17 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ALGLIB link errror
PostPosted: Mon Dec 10, 2012 2:38 am 
Offline

Joined: Mon Dec 10, 2012 2:31 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: ALGLIB link errror
PostPosted: Mon Dec 10, 2012 5:52 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group