Re: luabind 0.8.1 + lua 5.1.4: passed object pointers are userdata

Dmitriy Mazovka <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Sorry for mistaken posting.

And thank you, everything works fine now!
I added LUABIND_DYNAMIC_LINK to the program project and everything is cool:). However it's weird, as previous version of luabind didn't need such tricks.

Thanks a lot.

-----Original Message-----
From: Ilia Trendafilov <[email protected]>
To: Dmitriy Mazovka <[email protected]>, [email protected]
Date: Sun, 18 Oct 2009 22:39:13 +0200
Subject: Re: [luabind] luabind 0.8.1 + lua 5.1.4: passed object pointers are 
userdata

> Your code works for me (luabind 0.8.1, lua 5.1.4, VC2005/Win32,
> luabind as dll). If you are on Windows, double-check
> LUABIND_DYNAMIC_LINK macro consitency i.e. if you are building luabind
> as dll, make sure that both the library and your program are compiled
> with LUABIND_DYNAMIC_LINK defined; and if compiling luabind to static
> library - make sure the macro is not defined for both luabind and your
> program.
> 
> On Sun, Oct 18, 2009 at 10:29 PM, Dmitriy Mazovka <[email protected]> wrote:
> > Thank you, but it didn't help, i'm still receiving the same error
> >
> >
> >>
> >> On Sun, 18 Oct 2009 23:47:01 +0400
> >> Dmitriy Mazovka <[email protected]> wrote:
> >> > ? ?luabind::globals(state)["tmp"] = &obj;
> >>
> >> Have you tried:
> >> luabind::globals(state)["tmp"] = boost::ref(obj);
> >>
> >> Best regards
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > luabind-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/luabind-user
> >
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.