On Thursday 03 August 2006 12:58 pm, John D Lamb wrote:
> Manu Hack wrote:
> > I ran an example using GSL.  I added the path after -I when I compiled
> > it.  I kept getting error.  The error message was: undefined reference
> > to 'gsl_pow_2.
> >
> > I could use those constants like M_LOG2E though.
> >
> > Am I missing anything?  Thanks!
>
> Probably the flags -lgsl -lgslcblas -lm
>
> You have to tell your compiler explicitly to link with the gsl library
> and a cblas /maths library.
I use a make file:
See attached and alter it according you setup

-- 
Best regards
Thomas Spuhler
VP Marketing
TUSONIX, Inc.

All Tusonix outgoing e-mail has been scanned for viruses
GSLLIBS = -L/usr/local/lib -lgsl -lgslcblas
GSLINCS = -I/usr/local/include

# space seperated list of source files in program
SOURCES = bessel.cpp

# change testProgram.exe to the name you wish your
# executable program to be
bessel: $(SOURCES)
	g++ -o $@ $(GSLINCS) $(GSLLIBS) $(SOURCES) 

Attachment: pgpcLuTpXJwO5.pgp
Description: PGP signature

_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to