Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Linking SDL in Mac OS X
Linking SDL in Mac OS X [message #736485] Fri, 14 October 2011 03:26 Go to next message
Ben  is currently offline Ben Friend
Messages: 2
Registered: October 2011
Junior Member
Hey, I'm have quite a bit of trouble with trying to get SDL linking with Eclipse in Mac OS X. I tried searching for a solution, but to no avail, the ones that do exist don't work.

Please help me. Crying or Very Sad
Re: Linking SDL in Mac OS X [message #737301 is a reply to message #736485] Fri, 14 October 2011 22:15 Go to previous message
Ben  is currently offline Ben Friend
Messages: 2
Registered: October 2011
Junior Member
Okay, I finally figured out how to do in in g++ from the command line:
g++ -c -I/Library/Frameworks/SDL.Framework/Versions/A/Headers main.cpp SDLMain.m
g++ main.o SDLMain.o -o SDLTest -framework SDL -framework Cocoa


I assume that Eclipse first builds the source into objects, then links the objects. How do I set the options in the build settings so it can work? Right now, it only generates a "main.o" file in the "Debug/src" folder.
Previous Topic:IASTFileLocation to IDocument location
Next Topic:Jump to the next error in the console: double-click
Goto Forum:
  


Current Time: Sat Apr 27 00:59:01 GMT 2024

Powered by FUDForum. Page generated in 0.03134 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top