Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
[apple scitech] Xcode with GNU Scientific Libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[apple scitech] Xcode with GNU Scientific Libraries




Dear Everyone,

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

/usr/include/gsl/

but with OS X it's

/sw/include/gsl/

>From a shell terminal I can compile my code with a command like

$ gcc -B/sw -c math.cpp -o math.o

or

$ 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.

Any suggestions?

Jerry
 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.