[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: Compling Error gsu 2.6
From: |
John D Lamb |
Subject: |
Re: AW: Compling Error gsu 2.6 |
Date: |
Thu, 30 Jul 2020 16:43:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Dear Benedikt:
I also use Ubuntu (20.04) and have not had problems with GSL linking.
The -L/usr/local/lib should be telling g++ to look in /usr/local/lib.
But you seem to have installed gsl in ~/Programme; so it might be more
sensible to use -L.. instead (I haven’t tested it).
Ubuntu already has GSL in the repositories; so you might just install
it. If you are using any recent version you should have stats available.
And if GSL is installed in the Ubuntu default location, g++ will find
libgsl.so etc without any extra effort.
If you are using C++ and want to use GSL stats on, for example,
std::vector<double>s, you could try
https://sourceforge.net/projects/ccgsl/, which will let you use gsl
stats functions with objects C doesn’t know about. But solve the
location problem first: ccgsl doesn’t
need extra libraries but it does need somewhere to install header files.
On 30/07/2020 15:53, Kalthoff, Benedikt Johannes wrote:
Dear all,
I use an Ubuntu Linux system and have extracted the gsl files into
~/Programme (thus ~/Programme/gsl/* are all the downloaded files)
and have installed anything into the basic structures.
My blub.cpp lies in the ~/Programme/testprogramme and I looked
into the /usr/local/lib folder and have found the files you have mentioned.
If I use now the command g++ -L/usr/local/lib -lgsl -lgslcblas -lm blub.cpp
I still get the old error.
Might it be possible that I need another package which might be necessary?
--
John D Lamb