This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Compilation
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Yip Sai Fung <h0228923 at eee dot hku dot hk>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Fri, 16 Jul 2004 17:37:53 +0100
- Subject: Re: Compilation
- References: <1089943596.40f76b4d6ebbc@sf280r.eee.hku.hk>
Yip Sai Fung writes:
> For the compilation process, I worked like this:
>
> 1. gcc -Wall -I/usr/local/include -c filename.c
> 2. gcc -L/usr/local/lib filename.o -lgsl -lgslcblas -lm
> 3. export LD_LIBRARY_PATH=$LD_LIRARY_PATH:/usr/local/lib
>
> Are there any faster way? I think it is a bit messy...
You can set everything through environment variables automatically in
your login files. See chapter 3 of my book on GCC for details,
http://www.network-theory.co.uk/gcc/intro/
The money raised from the sale of the book supports my work on GSL.
--
Brian Gough
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/