Results 1 to 2 of 2
  1. #1
    Undefined symbols _main

    Member Since
    Jul 28, 2013
    Posts
    4
    Undefined symbols _main
    I'm trying to make an OpenGL command-line application following the NeHe tutorials.

    I defined main(...) in wemain.mm but it says the symbol is undefined. Why isn't it compiling that file? When I put it in wecontroller.mm it read it but then it said NSApplicationMain was undefined that I was calling from main(...).

  2. #2
    Undefined symbols _main

    Member Since
    Jul 28, 2013
    Posts
    4
    Oh, I had to add the files to Compile Sources in Build Phases.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Undefined symbols for architecture x86_64: error on Xcode
    By Bubbagump00 in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 03-22-2012, 12:32 PM
  2. -macosx_version_min,10.5 & Undefined symbols __Unwind_Resume
    By colinhercus in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 01-27-2010, 11:10 PM
  3. Error: multiple definitions of symbol _main
    By frike in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 04-12-2008, 01:47 PM
  4. /usr/bin/ld: Undefined symbols
    By kipepeo in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 05-24-2007, 07:52 PM
  5. MacOSX and SDL... _main undefined?
    By shock in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 10-15-2004, 08:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •