depends on your C compiler configuration, most of the times you need to specify the calling convention explicitly, for example: stdcall for msvc or cdecl for gcc
in your case, try add cdecl: proc addTwoIntegers(a, b: cint): cint {.importc,cdecl.}
depends on your C compiler configuration, most of the times you need to specify the calling convention explicitly, for example: stdcall for msvc or cdecl for gcc
in your case, try add cdecl: proc addTwoIntegers(a, b: cint): cint {.importc,cdecl.}