Jump to content
  • 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 post
  • 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 post
  • 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 post
  • 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 post
  • 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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.