注册 登录
编程论坛 汇编论坛

[求助]编译不了,请帮忙解决,谢谢!

ceker 发布于 2007-03-27 15:18, 1351 次点击

我是初级新手 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

3 回复
#2
菜鸟上路2007-03-27 16:17

我这没问题呀

只有本站会员才能查看附件,请 登录

#3
ceker2007-03-27 20:53

麻烦把你的windows.inc文件传给我好么?
ceker@126.com 谢谢!

#4
菜鸟上路2007-03-27 21:14
以下是引用ceker在2007-3-27 20:53:21的发言:

麻烦把你的windows.inc文件传给我好么?
ceker@126.com 谢谢!

上次那个是我传的

1