[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [Help-gsl] compile with static GSL(1.4) libraries: G++(3.3) OS X(10

From: John Gehman
Subject: Fwd: [Help-gsl] compile with static GSL(1.4) libraries: G++(3.3) OS X(10.3.5)
Date: Thu, 9 Dec 2004 17:50:04 +1100

Thanks so much Joakim,

What I did was the following:

1. Create a gsl/lib-static directory containing *only* the static
   versions of the libraries.

2. When compiling (linking) a gave this path with the -L option to

This was on unix, and maybe your problems are platform spesific. I
know *nothing* about Mac OS X.

For the record, to compile an executable with g++ using static versions of the gsl library/libraries on OS X, I did a mkdir gsl-static in /usr/local/lib/ and made symbolic links to libgsl.a and libgslcblas.a in the /usr/local/lib directory as suggested, and only found the following to work, creating an executable approximately 3x larger than the dynamically linked gsl version: g++ -o myprogram mycode.c /usr/local/lib/gsl-static/libgsl.a /usr/local/lib/gsl-static/libgslcblas.a

--using -L to specify this directory didn't work--it still used the dynamic libraries. The resulting executable works on several other machines.

Thanks again Joakim,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]