Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6346291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:59:20+00:00 2026-05-24T20:59:20+00:00

I was going to migrate my game from glut to sdl. It’s working perfectly

  • 0

I was going to migrate my game from glut to sdl.

It’s working perfectly in glut but I wanted to use some sdl features.

So I go into my project properties, under the targets header I click the program that will be compiled, build phases, link binary with libraries, add SDL.framework

The exact same as I have done for OpenGL.framework and GLUT.framework

However when I add: #include <SDL/SDL.h> it comes up with a linker error when I try to build:

Undefined symbols for architecture x86_64:
  "_main", referenced from:
      __start in crt1.o
     (maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Googling simply leads to a fair few results, but no real explanations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:59:22+00:00Added an answer on May 24, 2026 at 8:59 pm

    SDL uses a macro to rename your main(..) and should supply its own, usually implemented in SDLmain.m. It should be supplied together with the SDL.framework.

    When you download the framework from here http://www.libsdl.org/download-1.2.php Read the ReadMeDevLite.txt in the devel-lite folder.

    Another description
    http://www.meandmark.com/sdlopenglpart2.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to migrate our project from svn to git. Now some of the
I am going to use p42svn for the first time and I have some
I'm currently working on a migration project, to migrate data from the old db
I am going to migrate from rails 3 app, that used AR and arel
I'm going to migrate from asp to asp.net over the next few months. Is
I am going to migrate a Wordpress blog from a Wordpress.com account to a
I'm going to migrate my Android application into WP7 platform. Android one contains heavy
I have to migrate some legacy data from stand-alone sql server database to sharepoint
Going through some of my older Delphi projects and upgrading them to D2009, as
Going from the example given here... http://ericswann.org/blog/archive/2009/04/06/linq-to-sql-datacontext-provider-revisited.aspx I'm trying to use the datacontext between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.