Re: [Dev-C++] compiling and linking gsl
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-03-09 12:51:13
|
I don't know anything about the gls package, so I can't give specific
instructions.
However, have you specified which libraries your project should use. It
isn't enough to add the path to the gls library files. If you need a
library libgls.a, you have to add a parameter -lgls to the linker options,
or the linkage will fail.
/Per W
On Wed, 9 Mar 2005, Johan Parmler wrote:
> Hello
>
> I am a new user of C and I am trying to make the gsl package to work. I
> have used the Package manager to install the GSL package.
>
> Then I want to compile and run the program
>
> #include <stdio.h>
> #include <gsl/gsl_sf_bessel.h>
>
> int
> main (void)
> {
> double x = 5.0;
> double y = gsl_sf_bessel_J0 (x);
> printf ("hej");
> return 0;
> }
>
>
> I have added paht:s to the gls in the "Directory" menu in compiler
> options.
>
> It does not work anyway?
>
> Have anyone else has the same problem?
>
> /Johan Parmler
>
|