forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 2:52 am

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  [ 3 posts ] 
Author Message
 Post subject: Using alglib as a (shared) library
PostPosted: Mon Dec 06, 2010 3:20 pm 
Offline

Joined: Mon Dec 06, 2010 3:10 pm
Posts: 2
Hi,
I'm a newbie in c++ so excuse any stupid questions.
I don't use any programming environment like eclipse, but only a text editor and a shell. So even if I just use one of the alglib_specialfunctions I end up first compiling then linking 4 (or more) files. I read about making shared objects out of all alglib-files, but I need a step by step explanation of how to do this. Or is there another possibility to install alglib "properly" like for example the blitz-library.
At the end I would like to be able to link with a flag like
Code:
g++ ..... -lalglib


Thank you very much for your help!

-Vela


Top
 Profile  
 
 Post subject: Re: Using alglib as a (shared) library
PostPosted: Mon Dec 06, 2010 6:42 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Current version of ALGLIB does not include built-in support for shared library creation, so you have to build shared lib yourself. I can recommend you to use libtool, which allows to create portable and installable shared libraries.


Top
 Profile  
 
 Post subject: Re: Using alglib as a (shared) library
PostPosted: Tue Dec 07, 2010 1:40 pm 
Offline

Joined: Mon Dec 06, 2010 3:10 pm
Posts: 2
Thanks, I will give it a try. One more question; if I have successfully installed alglib as a shared library, how do I include the right header files?
So far I did it with
Code:
#include "interpolation.h"

but then the compiler looks in the same directory, right?
Is there something like a "big header file", like #inlcude <alglib.h>, or do I have to supply the directory while linking using the -L flag?

Thanks for your help!


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 27 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group