Author Topic: compile problem  (Read 3117 times)


  • Member
  • ****
  • Posts: 868
compile problem
« on: June 07, 2013, 01:59:33 AM »
Thanks for any help.
I have converted about 50 programs to 64-bit GoAsm.
Windows 7 pro 64-bit
Could I have messed up GoAsm somehow??
If there is another version, how do I go about installing it?

"ALL OF A SUDDEN" I get the following error:
   GoAsm.exe Version - Copyright Jeremy
    Gordon 2001/12 -
  Line 186 of assembler source file (blah.asm):-
  Use square brackets to address memory. ADDR or OFFSET
  to get address:-
186  mov Q[hInstance],rax
#define codejps
#define WIN64
#INCLUDE windows.h

#ifndef LPSTR
  #if !x64
   #define LPSTR dd
   #define LPSTR dq
CommandLine LPSTR  ?

hInstance        dq   0

185  invoke GetModuleHandleA, NULL
186    mov    Q[hInstance],rax  ;********************
187    invoke GetCommandLine
188    invoke WinMain, [hInstance],NULL,[CommandLine],SW_SHOWDEFAULT
189    invoke ExitProcess,rax   


  • Member
  • **
  • Posts: 238
    • WJR's website
Re: compile problem
« Reply #1 on: June 07, 2013, 02:20:40 AM »
Not sure if I can change the error message in such cases, but it looks like you need /x64 on the GoAsm command line...


  • Member
  • ****
  • Posts: 868
Re: compile problem
« Reply #2 on: June 07, 2013, 03:42:55 AM »
Yes, that was the problem.
I copy the .bat files from one program to another and must have clicked on the wrong one
and didn't realize it. Thanks.