The executable is 64-bit. Araq, that would be a logical explanation. Any tips 
on how I can confirm this? nim-glfw appears to me to use cdecl calling 
convention, as hinted by this code snippet in glfw.nim: 
    
    
    proc renameProcs(n: NimNode) {.compileTime.} =
      template pragmas(n: string) = {.glfwImport, cdecl, importc: n.}
      for s in n:
        case s.kind
        of nnkProcDef:
          let oldName = $s.name
          let newName = "glfw" & (oldName[0]).toUpperAscii & oldName[1..^1]
          s.pragma = getAst(pragmas(newName))[0]
        else:
          renameProcs(s)
    

The glfw library also appears to use cdecl calling convention.

Reply via email to