Hi,
I am very new to c++ and Alglib. After extracting alglib-3.10.0.cpp.gpl and trying to run demo.cpp in the Eclipse Helios environment, I come across the following errors:
**** Build of configuration Debug for project alglib ****
**** Internal Builder is used for build **** g++ -oalglib.exe demo.o demo.o: In function `main': C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:19: undefined reference to `alglib::ae_matrix_wrapper::setlength(long long, long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:20: undefined reference to `alglib::ae_matrix_wrapper::setlength(long long, long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:21: undefined reference to `alglib::ae_matrix_wrapper::setlength(long long, long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:25: undefined reference to `alglib::real_2d_array::operator[](long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:25: undefined reference to `alglib::randomreal()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:26: undefined reference to `alglib::real_2d_array::operator[](long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:26: undefined reference to `alglib::randomreal()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:27: undefined reference to `alglib::real_2d_array::operator[](long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:32: undefined reference to `alglib::setnworkers(long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:45: undefined reference to `alglib::smp_rmatrixgemm(long long, long long, long long, double, alglib::real_2d_array const&, long long, long long, long long, alglib::real_2d_array const&, long long, long long, long long, double, alglib::real_2d_array const&, long long, long long)' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::~real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::~real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:51: undefined reference to `alglib::real_2d_array::~real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::~real_2d_array()' C:\Users\van\workspace\alglib\Debug/../demo.cpp:13: undefined reference to `alglib::real_2d_array::~real_2d_array()' demo.o:C:\Users\van\workspace\alglib\Debug/../demo.cpp:51: more undefined references to `alglib::real_2d_array::~real_2d_array()' follow collect2.exe: error: ld returned 1 exit status Build error occurred, build is stopped Time consumed: 245 ms.
Can anyone please help ? Many thanks, Van
|