forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 7:37 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: Compile Demo.cpp
PostPosted: Wed Jan 18, 2017 4:32 am 
Offline

Joined: Tue Jan 17, 2017 11:16 pm
Posts: 10
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


Top
 Profile  
 
 Post subject: Re: Compile Demo.cpp
PostPosted: Sat Jan 21, 2017 7:45 am 
Offline

Joined: Tue Jan 17, 2017 11:16 pm
Posts: 10
I solved it. I need to include all the cpp files in the interpolation.h


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 25 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