Assembly error A2119

2

I am a beginner in Assembly and am now trying to run my first Hello World program. I use Windows 7 and MASM.

I'm following a tutorial in the program source until the following:

.386
model falt, stdcall
option casemap:none

include     \masm32\include\windows.inc

include     \masm32\include\masm32.inc
includelib  \masm32\lib\masm32.lib

include     \masm32\include\kernel32.inc
includelib  \masm32\lib\kernel32.lib

include     \masm32\include\user32.inc
includelib  \masm\lib\user32.lib

.data
msg db "Hello World!!!", 0
cpt db "MY FIRST PROGRAM!!!", 0

.code
start:
invoke MessageBox, NULL, ADDR msg, ADDR cpt, MB_OK
invoke ExitProcess, NULL
end start

When I send the assembler editor to the source code, I get the following errors:

  

\ masm32 \ include \ windows.inc (78): error A2119: language type must be specified       \ masm32 \ include \ windows.inc (79): error A2119: language type must be specified       \ masm32 \ include \ windows.inc (80): error A2119: language type must be specified       \ masm32 \ include \ windows.inc (81): error A2119: language type must be specified       \ masm32 \ include \ windows.inc (82): error A2119: language type must be specified       ...       ...

Does anyone know what the error means?

    
asked by anonymous 26.04.2015 / 21:11

1 answer

2

There are three errors.

  • The first two errors are in the second line, model falt, stdcall , you should put the . point in front of model , leaving

29.04.2015 / 03:13