Hi... I have installed gsl-1.15 in my computer having Ubuntu 12.04 as operating system.
I am trying to run some HEP package codes which needs gsl libraries for linking. Even after defining the path of gsl libraries etc its giving error messages. the changes and corresponding reporting errors are attached below. I don't know how to fix this. I would really appreciate if somebody can help me in this. thanks Best, sumit ------------------------------------------------------ # Makefile for 2HDMC # Choose your C++ compiler here (in general g++ on Linux systems): CC = g++ LDFLAGS=-L/usr/local/lib -lgsl -lgslcblas #Optimisation level, eg: -O3 OPT= -O3 #OR debug level: -g(n=1,2,3) DEBUG= VPATH=src -CFLAGS+= /usr/local/include/gsl -Wall $(DEBUG) $(OPT) -------------------------------------------------------- I am attaching some part of error messages: g++ -c src/THDM.cpp -o lib/THDM.o g++ -c src/SM.cpp -o lib/SM.o g++ -c src/DecayTable.cpp -o lib/DecayTable.o g++ -c src/Constraints.cpp -o lib/Constraints.o g++ -c src/Util.cpp -o lib/Util.o Making library lib/lib2HDMC.a /usr/local/lib/lib2HDMC.a(THDM.o): In function `THDM::get_coupling_hln(int, int, int, std::complex<double>&, std::complex<double>&) [clone .constprop.24]': THDM.cpp:(.text+0x6f): undefined reference to `gsl_matrix_get' THDM.cpp:(.text+0x87): undefined reference to `gsl_matrix_get' /usr/local/lib/lib2HDMC.a(THDM.o): In function `THDM::set_yukawas_type(int) [clone .part.7]': THDM.cpp:(.text+0x535): undefined reference to `gsl_matrix_memcpy' THDM.cpp:(.text+0x55f): undefined reference to `gsl_matrix_scale' THDM.cpp:(.text+0x567): undefined reference to `gsl_matrix_free' THDM.cpp:(.text+0x57e): undefined reference to `gsl_matrix_memcpy' THDM.cpp:(.text+0x5a0): undefined reference to `gsl_matrix_scale'
