[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Compling Error gsu 2.6

From: Kalthoff, Benedikt Johannes
Subject: AW: Compling Error gsu 2.6
Date: Thu, 30 Jul 2020 14:53:09 +0000

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?

Best regards, Benedikt
Von: Mark Galassi <>
Gesendet: Donnerstag, 30. Juli 2020 16:10:29
An: Kalthoff, Benedikt Johannes;
Betreff: Re: Compling Error gsu 2.6

Dear Benedict,

You do not mention what operating system you are on, and you don't say
very much about what path you installed to.  So there might be the need
for a bit more, but you should be able to use the instructions here:

I note that you did a single instruction to compile and link, while the
documentation shows separate ones.  That means that you should put the
link instructions in your single command.  You could try:

g++ -I ../gsl-2.6 blub.cpp -o blub -L../gsl-2.6/lib -lgsl -lgslcblas -lm

Note that I made the guess that your libraries were installed in
../gsl-2.6/lib, but I really don't know if that's where they are.  You
should use the -L option to point to where files like and are located.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]