News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

compile problem

Started by shankle, June 07, 2013, 01:59:33 AM

Previous topic - Next topic

shankle

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

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

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.