Do it like this:
(assuming ur gsl libs are in the distributions default paths)

 gcc -c $FILE.c

Then:

 gcc $FILE.o -lgsl -lgslcblas -lm -l$ANYTHING_ELSE -o $WHATEVER.out


On 3/4/06, Brian Gough <[EMAIL PROTECTED]> wrote:
>
> Tom Vajzovic writes:
> > I'm trying to solve a system of linear equations.
> > When I call the function gsl_linalg_SV_decomp, my program segfaults.
> > I compiled with
> >
> > $ gcc -lgsl -lgslcblas -lm test.c -o test
>
> The most important gcc option is missing from your command-line,
> http://www.network-theory.co.uk/docs/gccintro/gccintro_9.html
> If you add it, it will show you the problem(s).
>
> --
> Brian Gough
>
> Network Theory Ltd,
> Publishing the GSL Manual --- http://www.network-theory.co.uk/gsl/manual/
>
>
> _______________________________________________
> Help-gsl mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gsl
>
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to