Based on your email, try this: gcc -I../lib/lua-5.1.4/src ../lib/lua-5.1.4/src/liblua.a main.c -o emulator Hope this helps, Matthew