Re: Binded C++ Class In DLL

kuku super <[email protected]> Fri, 1 Jul 2011 15:16:06 +0800
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
if u forgot the LUABIND_DYNAMIC_LINK marco, dll can't be compiled
successfully.

whether using the luabind static lib or using the luabind dynamic link, the
bug will occur .



On Thu, Jun 30, 2011 at 4:00 PM, Daniel Wallin <[email protected]> wrote:

> On Thu, Jun 30, 2011 at 9:18 AM, kuku super <[email protected]>
> wrote:
> > i found the reason.
> > because, luabind bind the .property member use the property_tag function
> > pointer.
> > so when bind the member in a dll with the property_tag pointer in the dll
> > and when set the member in the .exe, the
> > luabind::detail::class_rep::settable(lua_State* L) compare the pointer
> > setted by dll and the &property_tag in .exe.  of course they were
> different.
> > so the problem occured.
> > that's the bug.
> > i solved this problem by setting property_tag a const pointer
> temporarily.
> > would it be fixed?
>
> Are you linking dynamically to luabind? A very common mistake is
> forgetting to define LUABIND_DYNAMIC_LINK when building both the
> shared library and the application.
>
> --
> Daniel Wallin
> BoostPro Computing
> http://www.boostpro.com
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user