Jump to content

Recommended Posts

When i go to compile game source i get that error :

 

cipher.cpp:32:10: fatal error: 'cryptopp/cryptoppLibLink.h' file not found
#include <cryptopp/cryptoppLibLink.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:120: OBJDIR/cipher.o] Error 1
gmake: *** Waiting for unfinished jobs....
compile minilzo.c
DragonSoul.cpp:385:11: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
return NULL;
^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL nullptr
^~~~~~~
1 error generated.
gmake: *** [Makefile:120: OBJDIR/DragonSoul.o] Error 1

 

CryptoPP already installed, any solution?

LOSTSCROLL.NET

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/
Share on other sites

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
#include "stdafx.h"

#include "cipher.h"

#ifdef _IMPROVED_PACKET_ENCRYPTION_

#include <cryptopp/modes.h>
#include <cryptopp/nbtheory.h>
#include <cryptopp/osrng.h>

// Diffie-Hellman key agreement
#include <cryptopp/dh.h>
#include <cryptopp/dh2.h>

// AES winner and candidates
//#include <cryptopp/aes.h>
#include <cryptopp/cast.h>
#include <cryptopp/rc6.h>
#include <cryptopp/mars.h>
#include <cryptopp/serpent.h>
#include <cryptopp/twofish.h>
// Other block ciphers
#include <cryptopp/blowfish.h>
#include <cryptopp/camellia.h>
#include <cryptopp/des.h>
#include <cryptopp/idea.h>
#include <cryptopp/rc5.h>
#include <cryptopp/seed.h>
#include <cryptopp/shacal2.h>
#include <cryptopp/skipjack.h>
#include <cryptopp/tea.h>
//#include <cryptopp/cryptoppLibLink.h> // yes delete this

 

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/#findComment-142755
Share on other sites

Ok done. The Fatal errore doesn't appear,thank you, now I have this :

DragonSoul.cpp:385:11: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
                        return NULL;
                               ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
1 error generated.

 

LOSTSCROLL.NET

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/#findComment-142758
Share on other sites

Changed in false now appear that

linking ../game....
ld: error: unable to find library -lanticpxsvr
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:129: ../game] Error 1

 

LOSTSCROLL.NET

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/#findComment-142760
Share on other sites

  • Premium

Oof, that looks like the hackshield lib, which, honestly, is not used. Don't include it in your makefile and don't compile any file related to hackshield and possibly, remove any reference to it.

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/#findComment-142761
Share on other sites

Cancelled all hackshield files/inc from source, same error

linking ../game....
ld: error: unable to find library -lanticpxsvr
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:129: ../game] Error 1

 

LOSTSCROLL.NET

Link to comment
https://metin2.dev/topic/27851-cryptopp-libs/#findComment-142763
Share on other sites

  • 4 weeks later...

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.