lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2010/6/20 RAN GREENBERG <ran_greenberg@hotmail.com>:
>
> when compiling with the command
> gcc -llua test.cpp

You need to link after you specify input files.
gcc -o test test.cpp -llua
also you need to do the extern "C" thing if it's C++.