I just got a MacBook running Leopard. I want to try out the Xcode IDE to decide whether I like it or not. I'm having trouble building objects and executables that already compile and link on a unix system. The problem is with the GSL libraries. On a typical system (like the one where I work), the path for the gsl headers is
but with OS X it's
>From a shell terminal I can compile my code with a command like
$ gcc -B/sw -c math.cpp -o math.o
$ gcc -I/sw/include -c math.cpp -o math.o
They both work perfectly. When I try to build the object math.o using Xcode, I get an error like
error: gsl/gsl_blas.h: No such file or directory
triggered by the line #include<gsl/gsl_blas.h> in my source file.
There was some discussion about linking against GSL on a thread here entitled "Document Or Core Data Science Apps", but none of the suggestions there work for me. I suspect my problem is finding the right build setting option in Xcode for the target math.o.
I want to emphasize that everything works perfectly in OSX using the command "make -f Makefile" from the shell with the Makefile edited appropriately. My intent here is to learn how to use Xcode for something more than a fancy text editor.
Do not post admin requests to the list. They will be ignored.
Scitech mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden