Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error build : error: ‘adopt_policy’ was not declared in this scope #5

Open
Martinfx opened this issue Sep 3, 2016 · 3 comments

Comments

@Martinfx
Copy link

Martinfx commented Sep 3, 2016

Compiling on linux. Compiler gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04)

CMakeFiles/test_abstract_base.dir/test_abstract_base.cpp.o: In function `luabind::detail::call_allocator(void const*, unsigned long)':
test_abstract_base.cpp:(.text._ZN7luabind6detail14call_allocatorEPKvm[_ZN7luabind6detail14call_allocatorEPKvm]+0x13): undefined reference to `luabind::allocator'
test_abstract_base.cpp:(.text._ZN7luabind6detail14call_allocatorEPKvm[_ZN7luabind6detail14call_allocatorEPKvm]+0x1a): undefined reference to `luabind::allocator_context'
collect2: error: ld returned 1 exit status
make[2]: *** [test/test_abstract_base] Error 1
make[1]: *** [test/CMakeFiles/test_abstract_base.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/test_attributes.dir/test_attributes.cpp.o: In function `luabind::detail::call_allocator(void const*, unsigned long)':
test_attributes.cpp:(.text._ZN7luabind6detail14call_allocatorEPKvm[_ZN7luabind6detail14call_allocatorEPKvm]+0x13): undefined reference to `luabind::allocator'
test_attributes.cpp:(.text._ZN7luabind6detail14call_allocatorEPKvm[_ZN7luabind6detail14call_allocatorEPKvm]+0x1a): undefined reference to `luabind::allocator_context'
collect2: error: ld returned 1 exit status
make[2]: *** [test/test_attributes] Error 1
make[1]: *** [test/CMakeFiles/test_attributes.dir/all] Error 2
/home/razor/Documents/luabind-deboostified/test/test_adopt_wrapper.cpp: In function ‘void test_main(lua_State*)’:
/home/razor/Documents/luabind-deboostified/test/test_adopt_wrapper.cpp:34:28: error: ‘adopt_policy’ was not declared in this scope
         def("make", &make, adopt_policy<0>()),
                            ^
/home/razor/Documents/luabind-deboostified/test/test_adopt_wrapper.cpp:34:44: error: expected primary-expression before ‘)’ token
         def("make", &make, adopt_policy<0>()),
                                            ^
/home/razor/Documents/luabind-deboostified/test/test_adopt_wrapper.cpp:35:44: error: expected primary-expression before ‘)’ token
         def("take", &take, adopt_policy<1>())
                                            ^
/home/razor/Documents/luabind-deboostified/test/test_adopt.cpp: In function ‘void test_main(lua_State*)’:
/home/razor/Documents/luabind-deboostified/test/test_adopt.cpp:57:42: error: ‘adopt_policy’ was not declared in this scope
   def("take_ownership", &take_ownership, adopt_policy<1>()),
                                          ^
/home/razor/Documents/luabind-deboostified/test/test_adopt.cpp:57:58: error: expected primary-expression before ‘)’ token
   def("take_ownership", &take_ownership, adopt_policy<1>()),
                                                          ^
make[2]: *** [test/CMakeFiles/test_adopt_wrapper.dir/test_adopt_wrapper.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_adopt_wrapper.dir/all] Error 2
make[2]: *** [test/CMakeFiles/test_adopt.dir/test_adopt.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_adopt.dir/all] Error 2
make: *** [all] Error 2

@nitrocaster
Copy link
Member

nitrocaster commented Sep 3, 2016

Tests weren't updated since deboostified project was started, so there's no surprise they're broken.

@Martinfx
Copy link
Author

Martinfx commented Sep 3, 2016

Yes its true, but it is issue

@nitrocaster
Copy link
Member

Sure. I'll take care of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants