回复 10楼 m21wo
1. 把你的库路径加到环境变量的lib下,这样就不用打绝对路径了.我的电脑->属性->高级->环境变量->用户变量->lib加如库路径,比如;E:\masm32\lib
2. makefile如下:
NAME = Hello
OBJS = $(NAME).obj
LINK_FLAG = /subsystem:console ;subsystem用console
ML_FLAG = /c /coff
$(NAME).exe: $(OBJS)
Link $(LINK_FLAG) $(OBJS)
.asm.obj:
ml $(ML_FLAG) $<
clean:
del *.obj
3.代码如下:

.386 .model flat ,stdcall option casemap:none includelib msvcrt.lib printf proto c :ptr sbyte,:vararg .data szmsg byte "hello world ",0ah,0 .code start: invoke printf ,offset szmsg ret end start

技术问题,请不要以短消息方式提问