我是初级新手 Hello, World !的新手 我找的源代码怎么就是生成不了 EXE 文件呢?
我用的是:Masm for windows 集成试验环境2007
INC文件是用masm32v8装的在 C:\masm32\INCLUDE 文件夹下,我换了好几个windows .inc文件了
那位大哥能帮我解决一下啊?谢谢!
错误提示:
编译程序C:\JMSOFT\Masm for windows 集成试验环境\123.asm
c:\masm32\include\windows.inc(13885):error A2005:symbol redefinition : Type1
c:\masm32\include\windows.inc(13930):error A2005:symbol redefinition : Type1
c:\masm32\include\windows.inc(13934):error A2005:symbol redefinition : Type1
c:\masm32\include\windows.inc(13937):fatal error A1010: unmatched block nesting
下面是源代码:
.386
.model flat,stdcall
option casemap:none
include C:\masm32\INCLUDE\windows.inc
include C:\masm32\INCLUDE\user32.inc
includelib C:\masm32\INCLUDE\user32.lib
include C:\masm32\INCLUDE\kernel32.inc
includelib C:\masm32\INCLUDE\kernel32.lib
.data
szCaption db '恭喜',0
szText db 'Hello, World !',0
.code
start:
invoke MessageBox,NULL,offset szText,offset szCaption,MB_OK
invoke ExitProcess,NULL
end start