Jump to content

Problem source game with gcc48


Recommended Posts

Hi metin2dev,

I've a problem when i compiling my game source with gcc48 and c++11.

After i installed gcc48 (usr/ports/lang/gcc48 && make install clean), and I compiled the libs needed for the source with gcc48:

libgame/src

libpoly

libserverkey

libsql

libthecore/src

 I've got errors regarded to cryptopp at linking.

 

linking ../game_r40125_32....
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o: In function `~SecBlock':
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o:/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:112: more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::allocate(unsigned int, void const*)':
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:100: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::allocate(unsigned int, void const*)':
/usr/src/mainline/Server/game/src/../../../Extern/include/cryptopp/secblock.h:100: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
collect2: error: ld returned 1 exit status
gmake: *** [../game_r40125_32] Error 1

So, how can i fix this problem?

Thanks.:)

 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.