[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] GSL using a Makefile
From: |
Rhys Ulerich |
Subject: |
Re: [Help-gsl] GSL using a Makefile |
Date: |
Fri, 11 Oct 2013 11:38:44 -0500 |
> I found out that I can compile and link using the following commands.
>
> gcc -Wall -I/home/svisw002/gsl/include -c vsd_nb.t.cpp
> gcc -L/home/svisw002/home/gsl/lib vsd_nb.t.o -lgsl -lgslcblas -lm
The 'gsl-config' binary that GSL installs can make retrieving those
values quite easy for Makefiles. See below.
> vsd_nbPoi : *.cpp *.h
> g++ -w -O4 -I ./ -o vsd_nbPoi *.cpp
Try
g++ -w -O4 `gsl-config --cflags` -o vsd_nbPoi *.cpp `gsl-config --libs`
where those are backticks around the gsl-config bits and I've removed
your '-I ./' option as I suspect it accomplishes nothing (the compiler
should look for includes in the local directory).
Hope that helps,
Rhys
- [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile,
Rhys Ulerich <=
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Viswakula, Sameera D., 2013/10/11
- Re: [Help-gsl] GSL using a Makefile, Rhys Ulerich, 2013/10/11