Skip to content

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

@Martinfx

Description

@Martinfx

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions