[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] GSL and Xcode on a mac
From: |
Jari Häkkinen |
Subject: |
Re: [Bug-gsl] GSL and Xcode on a mac |
Date: |
Fri, 14 Aug 2009 21:32:49 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
Hi,
Your Makefile is incorrect, change to
Programme : main.o functions.o errorhelper.o
g++ main.o functions.o errorhelper.o -o Programme -L/opt/local/lib
-lgsl -lgslcblas $(CFLAGS)
main.o : main.cpp functions.cpp errorhelper.cpp
g++ -c main.cpp -o main.o -I/opt/local/include $(CFLAGS)
I am not sure about the CFLAGS but as it used in your case it can be
omitted. Also you misspelled CFLAGS on the first line of the Makefile.
Cheers,
Jari
Nicolas Grenie wrote:
Hey there ;)
I installed gsl using macports. Everything looks ok...
I got a project that using gsl_cdf.h, gsl_types.h and gsl_errno.h
so in my main program they includes like this :
#include <gsl/gsl_types>
same for the others
to compile my project i did a makefile here : http://pastebin.com/m3a1fd756
my last verion include the -arch flag because i saw somewhere that ppc is
not supported by gsl.
but i got a error about a function of gsl im using
"_gsl_cdf_gamma_Pinv", referenced from
Calculate (long double ......) in main.o
symbol(s) not found
collect2 : ld returned 1 exit status"
do you have an explanation for this ?
i tried with others gsl_cdf functions., not working too :(
thanks for your help
Nico
_______________________________________________
Bug-gsl mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gsl