Jump to content
×
×
  • Create New...
  • 0

gcc7 problem


taddd

Question

8 answers to this question

Recommended Posts

  • 0
22 hours ago, taddd said:

Hello.
Im trying to update my source to gcc7 and im getting this errors:
https://pastebin.com/raw/vkR3BuX9

freebsd version 11.2

thanks

Most likely your boost version is way outdated. Try and grab the most recent version instead, it'd be compatible with more recent compilers and std versions.

  • Love 1

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

  • 0

i updated boost version and now im getting these errors:

compiling BattleArena.cpp
compiling OXEvent.cpp
compiling TrafficProfiler.cpp
compiling ani.cpp
In file included from /usr/local/include/boost/unordered/detail/implementation.hpp:30:0,
                 from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from ani.cpp:11:
/usr/local/include/boost/throw_exception.hpp: In function 'void boost::throw_exception(const E&)':
/usr/local/include/boost/throw_exception.hpp:70:29: error: 'enable_both' is not a member of 'boost::exception_detail'
     throw exception_detail::enable_both( e );
                             ^~~~~~~~~~~
In file included from /usr/local/include/boost/unordered/detail/implementation.hpp:30:0,
                 from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/include/boost/throw_exception.hpp: In function 'void boost::throw_exception(const E&)':
/usr/local/include/boost/throw_exception.hpp:70:29: error: 'enable_both' is not a member of 'boost::exception_detail'
     throw exception_detail::enable_both( e );
                             ^~~~~~~~~~~
In file included from /usr/local/include/boost/unordered/detail/implementation.hpp:30:0,
                 from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:7:
/usr/local/include/boost/throw_exception.hpp: In function 'void boost::throw_exception(const E&)':
/usr/local/include/boost/throw_exception.hpp:70:29: error: 'enable_both' is not a member of 'boost::exception_detail'
     throw exception_detail::enable_both( e );
                             ^~~~~~~~~~~
gmake: *** [Makefile:197: .obj/ani.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from desc.h:7:0,
                 from OXEvent.cpp:12:
cipher.h: At global scope:
cipher.h:7:17: error: 'CryptoPP::byte' has not been declared
 using CryptoPP::byte;
                 ^~~~
gmake: *** [Makefile:196: .obj/BattleArena.o] Error 1
gmake: *** [Makefile:196: .obj/OXEvent.o] Error 1

 

Link to comment
Share on other sites

  • 0
10 minutes ago, DrTurk said:

cipher.h:7:17: error: 'CryptoPP::byte' has not been declared

 

byte to BYTE

cipher.h: At global scope:
cipher.h:7:17: error: 'CryptoPP::BYTE' has not been declared
 using CryptoPP::BYTE;

Link to comment
Share on other sites

  • 0

I think the same issue is with cryptopp, too. Like, modern cryptopp versions are working with modern c++ standards. The old ones may cause issues. Did you check if you have the most recent version?

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

  • 0

I had the same problem with  "cipher.h:7:17: error: 'CryptoPP::byte' has not been declared" after i updated to CryptoPP to 8.2 and changing byte to BYTE worked for me, dunno whats your problem then.

Edited by DrTurk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 0

      Looking for Someone to create the queries etc for armors and weapons

    2. 13

      Official Private Shop Search

    3. 944

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 79

      GUI Teleport System

    5. 0

      inventory slot marking system cant compile

    6. 8

      Inventory Bug

    7. 63

      Metin2 Dev - Changelogs

  • Recently Browsing

    • No registered users viewing this page.

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.