Tuesday, June 29, 2010

typical g++ compile options

-Wall : display a maximum number of warnings
-fPIC : necessary for correct DSO treatment. Much more info here: http://people.redhat.com/drepper/dsohowto.pdf

Monday, June 21, 2010

EPS to PDF size conservation

To print EPS images into PDF files with paper size equal to EPS bounding box, use the epstopdf script or LATEX package described here: http://www.ctan.org/pkg/epstopdf

Thursday, June 10, 2010

gsl library usage

source file : inlcude "/gsl/foo.h"
makefile : gcc ... -lgsl -lgslcblas
the former is necessary to load supporting CBLAS library for linear algebra

Wednesday, June 9, 2010

g++ include

Under typical linux folder hierarchy, usr/local/include is the place to dump "orphan" .h and .hh files. This folder is normally visited by g++ when looking for includes.