title: /usr/bin/ld: cannot find : No such file or directory
body: <p>I'm following <a href="http://twinklebear.github.io/sdl2%20tutorials/2013/08/18/lesson-3-sdl-extension-libraries/" rel="noreferrer">this</a> SDL tutorial to try and make use of some SDL extension libraries. My code is identical to <a href="https://raw.github.com/Twinklebear/TwinklebearDev-Lessons/master/Lesson3/src/main.cpp" rel="noreferrer">theirs</a> but I am still unable to <code>make</code> the file which leads me to believe the problem is in my <code>makefile</code> which looks like this:</p>
  
  <pre><code>CXX = g++
  # Update these paths to match your installation
  # You may also need to update the linker option rpath, which sets where to look for
  # the SDL2 libraries at runtime to match your install
  SDL_LIB = -L/usr/local/lib -lSDL2 -Wl,-rpath=/usr/local/lib, -lSDL2_image
  SDL_INCLUDE = -I/usr/local/include
  # You may need to change -std=c++11 to -std=c++0x if your compiler is a bit older
  CXXFLAGS = -Wall -c -std=c++11 $(SDL_INCLUDE)
  LDFLAGS = $(SDL_LIB)
  EXE = SDL_Lesson3
  
  all: $(EXE)
  
  $(EXE): main.o
      $(CXX) $&lt; $(LDFLAGS) -o $@
  
  main.o: main.cpp
      $(CXX) $(CXXFLAGS) $&lt; -o $@
  
  clean:
      rm *.o &amp;&amp; rm $(EXE)
  </code></pre>
  
  <p>That <code>makefile</code> worked fine for previous examples. The only thing that has changed in this example is line 5 where I added <code>-lSDL2_image</code> as per the tutorial. When I try <code>make</code> the file I get the following traceback:</p>
  
  <pre><code>rony@comet:~/Documents/cpp/helloworld/lesson3$ make
  g++ main.o -L/usr/local/lib -lSDL2 -Wl,-rpath=/usr/local/lib, -lSDL2_image -o SDL_Lesson3
  /usr/bin/ld: cannot find : No such file or directory
  collect2: error: ld returned 1 exit status
  make: *** [SDL_Lesson3] Error 1
  </code></pre>
  
  <p>Is there an error with my makefile? Have I not installed the library correctly?</p>