This site has been archived and made available for preservation purposes. No edits can be made.

Results 1 to 9 of 9

Thread: Source...

  1. #1

    Source...

    I spent my night trying to compile the source, and today i almost got it but there is some weird error and i dont understand its nature to try to find a solution for it, so i come ask you guys for help (this is really my last resource )

    Code :
    .objs\Release\API.o:API.cpp|| undefined reference to `_ceil'|.objs\Release\API.o:API.cpp|| undefined reference to `__Znwj'|
    .objs\Release\API.o:API.cpp|| undefined reference to `_memset'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZSt17__throw_bad_allocv'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Znwj'|
    .objs\Release\API.o:API.cpp|| undefined reference to `_memset'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZSt17__throw_bad_allocv'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1Ev'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1ERKSs'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1Ev'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1ERKSs'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1Ev'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1ERKSs'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZdlPv'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___gxx_personality_sj0'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Register'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Unregister'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Resume'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___gxx_personality_sj0'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Register'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Unregister'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Resume'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___gxx_personality_sj0'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Register'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Unregister'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Resume'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___gxx_personality_sj0'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Register'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Unregister'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Resume'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1EPKcRKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSs4_Rep10_M_destroyERKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1EPKcRKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSs4_Rep10_M_destroyERKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1EPKcRKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSs4_Rep10_M_destroyERKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___gxx_personality_sj0'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__Unwind_SjLj_Register'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1EPKcRKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `_strtok'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__imp__isupper'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___cxa_allocate_exception'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___cxa_throw'|
    .objs\Release\API.o:API.cpp|| undefined reference to `_strtok'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___cxa_allocate_exception'|
    .objs\Release\API.o:API.cpp|| undefined reference to `___cxa_throw'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSsC1EPKcRKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `__ZNSs4_Rep10_M_disposeERKSaIcE'|
    .objs\Release\API.o:API.cpp|| undefined reference to `_memcpy'|

    im compiling with '-m32 -std=gnu++11', Boost and Time64 are ok, everything should work fine o.o'

  2. #2
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    You also have -m32 in the linker options?

  3. #3
    Thanks for the reply, added -m32 to linker, but there are still some errors

    Code :
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8gmtime64PKx'|.objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8gmtime64PKx'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8gmtime64PKx'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8gmtime64PKx'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8mktime64P2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8mktime64P2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8mktime64P2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z8mktime64P2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    .objs\Release\Script.o:Script.cpp|| undefined reference to `__Z10gmtime64_rPKxP2tm'|
    ||=== Build finished: 16 errors, 0 warnings ===|

  4. #4
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    You need the proper commit of the time64 repository which is referenced as a submodule.

  5. #5

  6. #6
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    https://github.com/Foxtacles/y2038/t...65ac71677cc558

    This is the submodule in the main repository.

  7. #7
    Still the same error... Could it be anything else?

  8. #8
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    No. The linker looks for C++ symbols. If you have the correct header (as in the referenced in the submodule commit, do full recompile), this shouldn't happen.

  9. #9
    everything working now =D (also had some problems with iniparser but already fixed everything) time to develop =D thanks for the assistance recycler

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •