How to link my aplication

Alan de Oliveira Silva <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
hello, i am a new user from luabind, and i want kwon how to link my 
aplication with luabind.

i put into g++ lines: -lluabind, but the follow msg:

/home/alan.oliveira/lua-0.1/src/teste.cpp:82: undefined reference to 
`Person::getPosX()'
teste.o: In function `luabind::detail::delete_s<Person>::apply(void*)':
/usr/include/luabind/detail/object_rep.hpp:93: undefined reference to 
`Person::~Person()'
teste.o: In function `~auto_ptr':
/usr/include/c++/4.3/backward/auto_ptr.h:173: undefined reference to 
`Person::~Person()'
teste.o: In function `luabind::adl::object 
luabind::make_function<luabind::detail::construct<Person, 
boost::mpl::v_item<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, boost::mpl::v_item<luabind::adl::argument 
const&, boost::mpl::v_item<void, boost::mpl::vector0<mpl_::na>, 0>, 0>, 
0> >, boost::mpl::v_item<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, boost::mpl::v_item<luabind::adl::argument 
const&, boost::mpl::v_item<void, boost::mpl::vector0<mpl_::na>, 0>, 0>, 
0>, luabind::detail::null_type>(lua_State*, 
luabind::detail::construct<Person, 
boost::mpl::v_item<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, boost::mpl::v_item<luabind::adl::argument 
const&, boost::mpl::v_item<void, boost::mpl::vector0<mpl_::na>, 0>, 0>, 
0> >, boost::mpl::v_item<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, boost::mpl::v_item<luabind::adl::argument 
const&, boost::mpl::v_item<void, boost::mpl::vector0<mpl_::na>, 0>, 0>, 
0>, luabind::detail::null_type)':
/usr/include/luabind/make_function.hpp:79: undefined reference to 
`luabind::detail::make_function_aux(lua_State*, int, 
boost::function1<int, lua_State*, std::allocator<boost::function_base> > 
const&, boost::function1<int, lua_State*, 
std::allocator<boost::function_base> > const&, boost::function2<int, 
lua_State*, char const*, std::allocator<boost::function_base> > const&)'
teste.o: In function `luabind::adl::object 
luabind::make_function<unsigned int (Person::*)(), 
boost::mpl::vector2<unsigned int, Person&>, 
luabind::detail::null_type>(lua_State*, unsigned int (Person::*)(), 
boost::mpl::vector2<unsigned int, Person&>, luabind::detail::null_type)':
/usr/include/luabind/make_function.hpp:79: undefined reference to 
`luabind::detail::make_function_aux(lua_State*, int, 
boost::function1<int, lua_State*, std::allocator<boost::function_base> > 
const&, boost::function1<int, lua_State*, 
std::allocator<boost::function_base> > const&, boost::function2<int, 
lua_State*, char const*, std::allocator<boost::function_base> > const&)'
teste.o: In function `luabind::detail::construct_aux<1u, Person, 
boost::mpl::v_item<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, boost::mpl::v_item<luabind::adl::argument 
const&, boost::mpl::v_item<void, boost::mpl::vector0<mpl_::na>, 0>, 0>, 
0> >::operator()(luabind::adl::argument const&, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >) const':
/usr/include/luabind/detail/constructor.hpp:93: undefined reference to 
`Person::Person(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >)'


		
_______________________________________________________ 
Yahoo! Mail - Sempre a melhor opção para você! 
Experimente já e veja as novidades. 
http://br.yahoo.com/mailbeta/tudonovo/
 



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
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.