help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] gsl linker error


From: Sumit Garg
Subject: Re: [Help-gsl] gsl linker error
Date: Sat, 1 Dec 2012 13:09:48 +0530

thanks for your reply. I already tried it but sadly doesn't work too.

Best, sumit

On Sat, Dec 1, 2012 at 1:02 PM, Francesco Montesano <
address@hidden> wrote:

> Hi Sumit,
>
> 2012/12/1 Sumit Garg <address@hidden>
>
>> 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 think that you forgot a '-I'
> -CFLAGS+= -I/usr/local/include/gsl -Wall $(DEBUG) $(OPT)
>
> Francesco
>
>> --------------------------------------------------------
>>
>>
>> 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'
>>
>
>


reply via email to

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