lua-users home
lua-l archive

Re: embedding lua with c

[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++.

AltStyle によって変換されたページ (->オリジナル) /