Hi,

Fink install in /sw/include for header files and /sw/lib for libaries, think you might have to tell gcc there location. I can't exactly remember the syntax but try something like this:

gcc -o run main.cpp -I/sw/include -L/sw/lib/ -lgsl -lgslcblas

Hope that helps.

Dan.

On 30 Jul 2007, at 17:22, Ivan Liu wrote:

Hi,

I'm trying to install GSL on my Mac OS X. I used fink
with the command

fink install gsl

The installation seemed successful but I still couldn't use the library.
When I compiled the source file of my application it doesn't find the
header files of GSL. I used the command to compile

gcc -o run main.cpp -lgsl -lgslcblas

The first of the error messages is:
error: gsl/gsl_math.h: No such file or directory

I wonder if I missed any steps during the installation process.

thanks a lot.


_______________________________________________
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