首页
社区
课程
招聘
WIN 32 汇编编译问题
发表于: 2007-2-15 15:31 6254

WIN 32 汇编编译问题

2007-2-15 15:31
6254
汇编 fatal error LNK1561: entry point must be defined

请问一下怎么解决...
连接OBJ正常

程序如下

.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data
MsgBoxCaption  db "Iczelion Tutorial No.2",0
MsgBoxText       db "Win32 Assembly is Great!",0

.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 2384
活跃值: (766)
能力值: (RANK:410 )
在线值:
发帖
回帖
粉丝
2
你的代码并没有什么问题,你是如何编译程序的,用手工还是汇编IDE的自动编译的?
2007-2-15 16:00
0
雪    币: 222
活跃值: (10)
能力值: ( LV8,RANK:130 )
在线值:
发帖
回帖
粉丝
3
错误提示不是很明确了吗?编译时加入/entry:start看看
2007-2-15 17:02
0
雪    币: 309
活跃值: (99)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
4
手工的..ml连接obj, 然后link连接EXE出的问题  
2007-2-15 17:48
0
雪    币: 222
活跃值: (10)
能力值: ( LV8,RANK:130 )
在线值:
发帖
回帖
粉丝
5
说错了,是连接的时候,这是我的

cd \masm32\bin
ml /c /coff /nologo d:\uniwork\uniwork.asm
link /subsystem:windows /libpath:\masm32\lib /nologo uniwork.obj
2007-2-15 17:58
0
雪    币: 309
活跃值: (99)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
6
你的编译成功了??
2007-2-15 18:18
0
雪    币: 796
活跃值: (370)
能力值: ( LV9,RANK:380 )
在线值:
发帖
回帖
粉丝
7
用Aogo写的MASMPlus就可以编译...
2007-2-16 13:17
0
游客
登录 | 注册 方可回帖
返回
//