Jump to content

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
https://metin2.dev/topic/9512-problem-source-game-with-gcc48/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.