Hi,
I have a mingw64 4.6.0 cross-compiler (20100414) which I'm in the process of
phasing out, as it doesn't comply with MSVC standards regarding the
decoration of library symbols.
With that compiler, I inserted into both mingw/include/_mingw.h and
x86_64-w64-mingw32/include/_mingw.h the following line of code:
typedef unsigned int __uint128 __attribute__ ((__mode__ (TI)));
Having done that, the following simple program then compiles and runs fine
(reporting '16 16'):
###############################
#include <stdio.h>
int main(void) {
printf("%d %d\n", sizeof(__int128), sizeof(__uint128));
}
###############################
Upon upgrading to my new 20110410 (4.7.0) compiler I again made the same
amendment to both of those _mingw.h files. But, this time, it's not working
for me ... on attempting to compile the above program I'm getting:
################################
C:\_64\c>x86_64-w64-mingw32-gcc -o try.exe try.c
try.c: In function 'main':
try.c:5:48: error: '__uint128' undeclared (first use in this function)
try.c:5:48: note: each undeclared identifier is reported only once for each
function it appears in
################################
What accounts for the difference ?
Cheers,
Rob
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public