This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compilation


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]