我正在努力将我的代码移植到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>
,{{1}}使用__int128,32位二进制文件不可用。我怎样才能编译它?