title: Cannot build Box2D on Linux: linker error
body: <p>I'm trying building Box2d v2.3.1 on my Ubuntu (13.10) machine. This is what I'm doing:</p>
  
  <pre><code>$ premake4 gmake
  $ cd Build/gmake/
  $ make
  </code></pre>
  
  <p>But the testbed is not building correctly. I get lots of undefined reference errors for glfw and glew symbols, like this:</p>
  
  <pre><code>obj/Debug/Testbed/Main.o: In function `main':
  /home/mostafa/.adobe/box2d-2.3.1/Box2D/Build/gmake/../../Testbed/Framework/Main.cpp:458: undefined reference to `glfwCreateWindow'
  </code></pre>
  
  <p>I have the development packages for both glfw and glew installed. I also checked the Testbed.make makefile and, since I saw no reference to glfw, added -lglfw to the two places where LIBS variable was defined. But I still get the same error.</p>