Loading C Library in Lua -llua not found
<p>I am trying to load a simple c function I wrote to lua so I can use it in my lua coding. I'm trying to compile it with: <br>
                <code>gcc ./main.c -llua -ldl -lm  -o lualibl</code><br>
and I'm receiving an error:
<br>
                <code>ld: library not found for -llua</code><br>
                <code>clang: error: linker command failed with exit code 1 (use -v to see invocation)</code>
<br></p>

<p>Say I remove -llua, then all my luaL_checkinteger/luaL_setfuncs functions are undefined symbols so I'm assuming I need to compile with the lua library. Any ideas on how I can find this library to compile with my c code? I'm running lua 5.2</p>