title: Undefined symbols for architecture x86_64 "_SDL_Init"
body: <p>Every time I try and compile a program that uses SDL, it gives me a </p>
  
  <pre><code>"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  "/Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/testProgram
  mkdir -p dist/Debug/GNU-MacOSX
  g++     -o dist/Debug/GNU-MacOSX/testProgram build/Debug/GNU-MacOSX/Window.o build/Debug/GNU-MacOSX/main.o -L/Library/Frameworks/SDL.framework -L/Library/Frameworks/SDL2.framework
  Undefined symbols for architecture x86_64:
    "_SDL_Init", referenced from:
        Window::startWindow() in Window.o
    "_SDL_Quit", referenced from:
        Window::exitWindow(bool) in Window.o
    "_SDL_SetVideoMode", referenced from:
        Window::startWindow() in Window.o
    "_main", referenced from:
       implicit entry/start for main executable
       (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)
  make[2]: *** [dist/Debug/GNU-MacOSX/testProgramError 1
  make[1]: *** [.build-conf] Error 2
  </code></pre>
  
  <p>I'm using netbeans on mac-OSX(not Xcode because you can't make cross platform apps).</p>