lua-users home
lua-l archive

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

I guess that may be a reason. Will work on it. Thanks.

On Wed, Aug 27, 2008 at 1:11 PM, James Dennett <> wrote:
On Tue, Aug 26, 2008 at 11:58 PM, Abhinav Lele <> 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