Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Using Mac frameworks without xcode
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Tue Dec 27, 2011 11:48 pm   Post subject: Using Mac frameworks without xcode

I want to keep exploring different libraries such as SDL and Allegro, however OS X utilizes frameworks to bundle these things, and I have no idea how to use frameworks without xcode. I don't really like xcode all that much. I'm quite happy to keep using TextWrangler for the time being. All of the tutorials for installing and using various frameworks do so through xcode, with the result being that I have no idea how to link to frameworks manually (in xcode, you pick your frameworks from a list and add them, or open a template project with the necessary frameworks pre-linked).

Google has been of no help. Do any mac users know how to link these things manually?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Dec 28, 2011 12:11 am   Post subject: RE:Using Mac frameworks without xcode

those appear to be cross-platform C/C++ libraries, so (after the library is installed on your system) the standard linking options should work just fine.

Probably something like
code:

-l libraryname

in your Makefile. http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

Try referring to the "Linux" version of instructions, sometimes those are relevant enough to be helpful.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: