我正在将我的代码移植到 Mac 上,它可以在我的 64 位 Windows 机器上正常编译。显然我正在使用的库之一(Awesomium)没有编译为 64 位代码,所以我必须将我的代码编译为 32 位二进制文件。
尝试使用 GCC 4.8 编译 32 位二进制文件时出现错误。
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; };
基本上 SFML 包括<algorithm>
哪些然后包括<random>
哪些使用 __int128 对 32 位二进制文件不可用。我怎样才能让它编译?