Compiling a 32-bit binary: expected unqualified identifier before '__int128'

I am working on porting my code to a Mac that compiles fine on my 64bit Windows machine. Apparently, one of the libraries I use (Awesomium) is not compiled into 64-bit code, so I need to compile my code as a 32-bit binary.

I get an error when trying to compile 32 bit binary with GCC 4.8.

In file included from /opt/local/include/gcc48/c++/random:50:0, from /opt/local/include/gcc48/c++/bits/stl_algo.h:67, from /opt/local/include/gcc48/c++/algorithm:63, from /Library/Frameworks/SFML.framework/Headers/System/Utf.hpp:32, from /Library/Frameworks/SFML.framework/Headers/System.hpp:43, from /Library/Frameworks/SFML.framework/Headers/Window.hpp:32, from /Users/ryan/projects/ArchaicEngine/ArchaicEngine/includes/ArchaicEngine/Graphics/RenderWindow.h:4, from /Users/ryan/projects/ArchaicEngine/ArchaicEngine/src/Graphics/RenderWindow.cpp:1: /opt/local/include/gcc48/c++/bits/random.h:106:26: error: expected unqualified-id before '__int128' { typedef unsigned __int128 type; }; 

Basically SFML includes <algorithm> , which then includes <random> , which uses __int128, which is not available for 32-bit binaries. How to do this for compilation?

+4
source share

Source: https://habr.com/ru/post/1443110/


All Articles