How to Build with MinGW64 on Windows 7
Thomas D. Dean
tomdean at speakeasy.org
Wed Dec 7 20:16:36 CET 2011
On Wed, 2011-12-07 at 19:59 +0100, Torbjorn Granlund wrote:
> What happens if you replace '-m64' by '-m32'?
> Supposedly, that fails.
I created hello.c
#include <stdio.h>
int main() {
printf("size of int %d\n",sizeof(int));
printf("size of ptr %d\n",sizeof(int*));
return 0;
}
gcc -m32 produces an executable with 4 byte ints and 4 byte ptr.
./a.exe
size of int 4
size of ptr 4
gcc -m64 produces an executable with 4 byte ints and 8 byte ptr.
./a.exe
size of int 4
size of ptr 8
>
> So, GMP's config.guess might be bad. I suppose it didn't properly
> support Windoze64 in 5.0.2.
Looks like the command should work.
>
> Please try this version:
>
> http://gmplib.org:8000/gmp/file/018161d99ceb/config.guess
>
> (You can download the raw text using the 'raw' button.)
I will try this
tomdean
More information about the gmp-discuss
mailing list