Re: Luabind link failed

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Wed, Mar 24, 2010 at 10:11:44AM +0100, Mickaël SÉRÉGÉ wrote:
> Hi,
> 
> I got a problem linking luabind to my project in Visual Studio 9.0 SP1. Path
> to luabind and lua libraries are correct but i get just one unresolved
> external symbol :
> 
> 1>Linking...
> 1>main.obj : error LNK2001: unresolved external symbol "private: static
> unsigned int const luabind::detail::class_id_map::local_id_base"
> (?local_id_base@class_id_map@detail@luabind@@0IB)
> 
> I built luabind with the following command : bjam --stagedir=lib\Win32\Debug
> --toolset=msvc-9.0 stage variant=debug.
> I used the following lua library :
> lua5_1_4_Win32_bin.zip<http://luaforge.net/frs/download.php/4000/lua5_1_4_Win32_bin.zip>
> 
> Building luabind in a static library can fix the problem but i want to use
> luabind as a dynamic library.
> 
> Is something wrong with the luabind build ? Or am i missing something ?

Did you define LUABIND_DYNAMIC_LINK when linking against the luabind
DLL?

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
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.