News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ML error in using RadASM

Started by pro3carp3, June 29, 2005, 01:06:17 AM

Previous topic - Next topic

pro3carp3

I'm switching over to RadASM from WinASM & get this error:


.386
.model flat,stdcall
option casemap:none

.code
start:

xor eax, eax
invoke ExitProcess, eax

end start


Output:

E:\Masm32\Bin\ML.EXE /c /coff /Cp /Zi /nologo /I"E:\Masm32\Include" "Tut3.asm"
Assembling: Tut3.asm
Tut3.asm(1) : error A2088: END directive required at end of file

Make error(s) occured.
Total compile time 79 ms


Why am I getting this error?

Thanks.
LGC

Jeff

Quote from: pro3carp3 on June 29, 2005, 01:06:17 AM
I'm switching over to RadASM from WinASM & get this error:


.386
.model flat,stdcall
option casemap:none

.code
start:

xor eax, eax
invoke ExitProcess, eax

end start


Output:

E:\Masm32\Bin\ML.EXE /c /coff /Cp /Zi /nologo /I"E:\Masm32\Include" "Tut3.asm"
Assembling: Tut3.asm
Tut3.asm(1) : error A2088: END directive required at end of file

Make error(s) occured.
Total compile time 79 ms


Why am I getting this error?

Thanks.
doublecheck to see if you are trying to assemble the correct asm file.  the code you posted shouldnt generate an error for a missing END in your file but rather ExitProcess undefined or something.  ;)

Titan

Did you include kernel32.inc and kernel32.lib? :eek

pro3carp3

Ok - I was under the impression that it would compile the file that was open at the time which is not the case.  It was trying to compile an empty file and the one that was open had not been added to the project.  Now it will compile, but I'm getting a link error that it can't open a res file.  I'm sure it is just a matter of setting it up properly as it seems the make file is trying to compile the res file even though I don't have one.  Do I have to manually set up the ini file for each project to indicate what files I have?

Is there a step-by-step guide for setting up RadASM for use with MASM?  Thanks.
LGC

KetilO

Hi pro3carp3

If you install RadASM to C:\RadASM and masm32 to C:\Masm32 then no setup is needed.

Your problem is thet you initially choose the wrong project type "Win32 App / Win32 App (no res)"

Use Project Options and change the Link command from:
5,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"$L" /OUT:"$5",3,4
to:
5,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"$L" /OUT:"$5",3

KetilO

pro3carp3

LGC