I copied Hutch's MASM64 buildx64 folder to C:\
From there, I removed the outer folder and renamed the inner one to masm32
Next, I copied the required PE/COFF binaries and config files to the buildx64 folder
Last, I attempted to assemble a simple hello world example (that i found online, because directives like .386, options, etc. were throwing error):
include \masm32\include64\msvcrt.inc
includelib \masm32\lib64\msvcrt.lib
.data
hello db 'Hello 64bit world!',0ah,0
.code
WinMain proc
mov ecx, offset hello
call printf
xor ecx, ecx
call exit
WinMain endp
end
However, I'm getting an error message:
...
\masm32\include64\msvcrt.inc(1) : error A2006:undefined symbol: PNJ\masm32\include64\msvcrt.inc(4)e
\masm32\include64\msvcrt.inc(4) : error A2006:undefined symbol: PNJ\masm32\include64\msvcrt.inc(7)e
...<snip, keeps repeating the same error above but on different lines>...
I opened msvcrt.inc in the aforementioned directory and saw this on my first and fourth lines, respectively:
externdef __imp_$I10_OUTPUT:PPROC
...
externdef __imp??0__non_rtti_object@@QEAA@AEBV0@@Z:PPROC
Please help!