The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: pro3carp3 on June 29, 2005, 01:06:17 AM

Title: ML error in using RadASM
Post by: 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.
Title: Re: ML error in using RadASM
Post by: Jeff on June 29, 2005, 05:01:27 AM
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.  ;)
Title: Re: ML error in using RadASM
Post by: Titan on June 30, 2005, 12:08:07 AM
Did you include kernel32.inc and kernel32.lib? :eek
Title: Re: ML error in using RadASM
Post by: pro3carp3 on June 30, 2005, 01:03:15 PM
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.
Title: Re: ML error in using RadASM
Post by: KetilO on June 30, 2005, 01:27:23 PM
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
Title: Re: ML error in using RadASM
Post by: pro3carp3 on June 30, 2005, 01:40:14 PM
Great!  Thank you.