lua-users home
lua-l archive

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


On Tue, Aug 26, 2008 at 11:58 PM, Abhinav Lele <abhinav.lele@gmail.com> wrote:
> Hi,
>
> I am trying to statically link lua in my cpp program, but still I am getting
> errors like
>
> undefined reference to `lua_pushnumber(lua_State*, double)'

Best guess from what you've given us: you've declared lua_pushnumber
as a function with C++, not C, linkage, but the one in the library was
built as a C function and hence has an unmangled name.

-- James