title: "Undefined reference to" using Lua
body: <p>I got the error <code>undefined reference to 'luaL_newstate'</code> when I try to build my project. I know it's an error with the linker but I'm relatively new to Lua and adding a library to a project. I use Code::Blocks by the way. API functions <code>luaL_openlibs</code>, <code>luaL_loadfile</code>, <code>lua_pcall</code>, <code>lua_getfield</code>, <code>lua_type</code>, <code>lua_settop</code>  are missing too.</p>
  
  <p>I saw on a webite that I have to link my project with libdl in order to solve this problem, but I don't really know what it mean and how to do it.</p>