Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing SDL with xCode 4.5
    primarykey
    data
    text
    <p>I know there are several questions regarding this. I have looked through them all but still haven't found an answer.</p> <p>I'm trying to use SDL with xCode on my Mac. I'm using xCode 4.5</p> <p>I followed <a href="http://lazyfoo.net/SDL_tutorials/lesson01/mac/xcode/index.php" rel="nofollow">this</a> tutorial exactly, twice! I even tried a second tutorial which was basically the same and it still didnt compile.</p> <p>When i compile i get this error:</p> <pre><code>Ld /Users/shardy/Library/Developer/Xcode/DerivedData/SDL_SetUp-efqnmqdzqqtkktbodsopeytuwjxt/Build/Products/Debug/SDL_SetUp normal x86_64 cd "/Users/shardy/Desktop/shardy/C++ Programs/GlutApps/SDL_SetUp" setenv MACOSX_DEPLOYMENT_TARGET 10.7 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/shardy/Library/Developer/Xcode/DerivedData/SDL_SetUp-efqnmqdzqqtkktbodsopeytuwjxt/Build/Products/Debug -F/Users/shardy/Library/Developer/Xcode/DerivedData/SDL_SetUp-efqnmqdzqqtkktbodsopeytuwjxt/Build/Products/Debug -F/Library/Frameworks -filelist /Users/shardy/Library/Developer/Xcode/DerivedData/SDL_SetUp-efqnmqdzqqtkktbodsopeytuwjxt/Build/Intermediates/SDL_SetUp.build/Debug/SDL_SetUp.build/Objects-normal/x86_64/SDL_SetUp.LinkFileList -mmacosx-version-min=10.7 -stdlib=libc++ -framework SDL -framework Cocoa -o /Users/shardy/Library/Developer/Xcode/DerivedData/SDL_SetUp-efqnmqdzqqtkktbodsopeytuwjxt/Build/Products/Debug/SDL_SetUp Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.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) </code></pre> <p>Followed by:</p> <pre><code> "_main", referenced from: Start in crt1.10.6.o (maybe you meant:_SDL_main) Symbol(s) not found for architecture x86_64 Linker command failed with exit code 1 (use -v to see invocation) </code></pre> <p>I was originally using xCode 4.3 and it wouldnt compile, so i updated to xCode to 4.5 thinking maybe xCode was causing issues and tried everything again, but unfortunately, still did not compile... I am not experienced enough to know how to fix this and i am out of relatable threads to read... Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload