且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编译32位时__int128错误

更新时间:2022-06-25 00:35:58

__ int128由

__int128 is protected by

规定( STRICT_ANSI )及!&安培;
  定义(_GLIBCXX_USE_INT128)

!defined(STRICT_ANSI) && defined(_GLIBCXX_USE_INT128)

所以,你既可以使用-ansi(如果你的code是严格ANSI C ++的投诉),我面临链接错误,由于这样的事实,链接器无法找到32位的库。

So, you could either use -ansi (in case your code is strictly ansi c++ complaint), I faced errors in linker due to the fact that the linker unable to find the 32bit libs.

_GLIBCXX_USE_INT128

_GLIBCXX_USE_INT128

在LIB / GCC / x86_64的-W64-的mingw32 / 4.8.1 /有/ C ++ / x86_64的-W64-的mingw32 /位/ C ++的config.h我确信生成pretty定义通过自动配置基于该系统的工具链是建立在

is defined in "lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++/x86_64-w64-mingw32/bits/c++config.h" which I am pretty sure was generated by the autoconfigure based on the system the tool chains are built.

您更好的下载MinGW的上海湾合作委员会(二进制)包中的32位版本并安装它们。

You better download the 32bit version on mingw gcc (binary) package and install them too.