Author Topic: compile problem  (Read 2360 times)

shankle

  • Member
  • ****
  • Posts: 857
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 0.57.0.4 - Copyright Jeremy
    Gordon 2001/12 - jg@JGnet.co.uk
   
  ERROR!
  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 LINKFILES
#define codejps
#define WIN64
#INCLUDE windows.h

DATA SECTION
#ifndef LPSTR
  #if !x64
   #define LPSTR dd
  #else
   #define LPSTR dq
  #endif     
#endif 
CommandLine LPSTR  ?

hInstance        dq   0


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

wjr

  • Member
  • **
  • Posts: 217
    • 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...

shankle

  • Member
  • ****
  • Posts: 857
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.