首页
社区
课程
招聘
[旧帖] [求助]关于masm32编译出错问题 0.00雪花
发表于: 2013-6-10 15:13 1659

[旧帖] [求助]关于masm32编译出错问题 0.00雪花

2013-6-10 15:13
1659
最近在看PE结构,学习的时候有一段简单的代码,可是就是编译通不过,代码如下
.model flat,stdcall
option casemap:none

include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib

    .data
szText  db 'helloworld',0
    .code
start:
    invoke MessageBox,NULL,offset szText,NULL,MB_OK
    invoke ExitProcess,NULL
end start
我设置的环境变量是:
include=c:\masm32\include
lib=c:\masm32\lib
path=c:\masm32\bin
编译的时候错误如下:



大家帮忙看看吧 谢谢了

[培训]传播安全知识、拓宽行业人脉——看雪讲师团队等你加入!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 340
活跃值: (56)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
2
.386
.model flat,stdcall
option casemap:none

include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib

.data
szText  db 'helloworld',0

.code
start:
    invoke MessageBox,NULL,offset szText,NULL,MB_OK
    invoke ExitProcess,NULL
end start

================================
缺了个:.386
2013-6-11 16:53
0
雪    币: 51
活跃值: (27)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
我现在知道了,可是就不知道为什么啊?要加.386,我加了.586也能编译通过
2013-6-12 12:52
0
雪    币: 340
活跃值: (56)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
4
是告诉编译器所要编译的是什么类型的CPU框架

不管386或586
都是x86框架的,现在的英特尔处理器都是这个框架的(只是个人理解,不是专业用语,自己去查看资料吧)
2013-6-12 13:23
0
游客
登录 | 注册 方可回帖
返回