编译32位二进制文​​件:'__int128'之前的预期unqualified-id

时间:2012-10-30 22:26:27

标签: c++ macos gcc stl

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

0 个答案:

没有答案