Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Linking SDL in Mac OS X
Linking SDL in Mac OS X [message #736485] Thu, 13 October 2011 23:26 Go to next message
Eclipse UserFriend
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 18:15 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 20:57:19 EDT 2025

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

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

Back to the top