help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] XCode and GSL


From: George Japaridze
Subject: [Help-gsl] XCode and GSL
Date: Mon, 26 Jun 2006 11:58:37 -0400

Hi list,
Anyone knows how to link GSL and XCode? I mean to do "build", "build and go"?

My GSL is in: /usr/local/include/gsl and /usr/local/lib/gsl. So, when I do in XCode projects target paths
        
        - Header Search Paths - /usr/local/include/gsl
        - Library Search Paths - /usr/local/lib/gsl
and
        - Other Linker Flags - -lgsl

The project with main.c
-------------------
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

int
main (void)
{
        double x = 5.0;
        double y = gsl_sf_bessel_J0 (x);
        printf ("J0(%g) = %.18e\n", x, y);
        return 0;
}
-------------------------

comes out with error message: "error: gsl/gsl_sf_bessel.h: No such file or directory",
although everything's fine when I do the same in the terminal.

What I am doing wrong?

many thanks,
George










************************************************************************ ******************* Dr. George Japaridze CTSPS, Clark Atlanta University

address@hidden 404 880 6420 Office
http://ctsps.cau.edu/george/index.html           404 226 3847 Cell







reply via email to

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