Hi,
Can the gmp bignum library be used with a 64-bit app ?
The following compiles ok but when trying to run (or debug with winDbg(X64)) I get an "The application was unable to start correctly".
format PE64 console
entry start
include '%fasminc%\win64ax.inc'
struct MP_INT
_mp_alloc dd ?
_mp_size dd ?
_mp_d dd ?
ends
mpz_t fix MP_INT
;**************************************************************************************************
section '.text' code readable executable
start:
cinvoke mpz_init_set_ui, m, 23039
.finished:
invoke ExitProcess, 0
;**************************************************************************************************
section '.data' data readable writeable
m mpz_t
;**************************************************************************************************
section '.idata' import data readable writeable
library libgmp, 'libgmp-3.dll',\
kernel32, 'kernel32.dll'
import libgmp,\
mpz_init_set_ui, '__gmpz_init_set_ui'
include '%fasminc%\api\Kernel32.inc'