Compilation

Brian Gough bjg@network-theory.co.uk
Fri Jul 16 16:45:00 GMT 2004


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/



More information about the Gsl-discuss mailing list