[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Static linking problem
- From: "James Dennett" <james.dennett@...>
- Date: Wed, 27 Aug 2008 00:41:35 -0700
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