__Int128 error while compiling 32 bits

c:\...random.h|106|error: expected unqualified-id before '__int128' 

When I compile a 32-bit program, this is the error I get. I am using http://sourceforge.net/projects/mingwbuilds/

Why? My code compiled from 4.7.2, but I wanted to upgrade to 4.8 for bug fixes and get rid of 0, used as a null value for pointer warnings when there are no zeros.

Many bug fixes I want. It compiles my x64, which are great for Windows.

Is there a way to get it to compile x32 applications?

+7
source share
1 answer

__ int128 is protected

! defined ( STRICT_ANSI ) && & & defined (_GLIBCXX_USE_INT128)

So, you can use -ansi (in case your code is strictly ansi C ++ complaint), I ran into errors in the linker due to the linker being unable to find 32-bit libraries.

_GLIBCXX_USE_INT128

defined in "lib / gcc / x86_64-w64-mingw32 / 4.8.1 / include / C ++ / x86_64-w64-mingw32 / bits / C ++ config.h", which I am sure was created by system-based autoconfiguration built tool chains.

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

+5
source

All Articles