[Top][All Lists]

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

Re: [Help-gsl] A dumb installation/compile error

From: John D Lamb
Subject: Re: [Help-gsl] A dumb installation/compile error
Date: Thu, 30 Mar 2006 08:14:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921

Hodgess, Erin wrote:
> C:\Program Files\GnuWin32\bin>gcc -c example.c -lgsl -lgslcblas -lm
> gcc -c example.c -lgsl -lgslcblas -lm
> example.c:2:31: gsl/gsl_sf_bessel.h: No such file or directory
> I've added Gnuwin32/include/gsl  to my path.  

gcc searches the directories in $CPATH for include files. So you might
try something like

export CPATH=$CPATH:Gnuwin32\include

If this is MinGW, as I recall, gcc will look in the include directory of
the base folder (Gnuwin32) anyway. You might check that gcc isn't
installed in /usr/local/ (or /local - IIRC MinGW doesn't distinguish
between them). MinGW should also let you compile in a directory other
than C:\Program Files\GnuWin32\bin.

You'll also need a matching $LIBRARY_PATH for the linker. e.g.

export LIBRARY_PATH=$LIBRARY_PATH:Gnuwin32\lib


reply via email to

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