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 <m...@galassi.org> Gesendet: Donnerstag, 30. Juli 2020 16:10:29 An: Kalthoff, Benedikt Johannes; help-gsl@gnu.org 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: https://www.gnu.org/software/gsl/doc/html/usage.html#compiling-and-linking 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 libgsl.so and libgslcblas.so are located.