nasm编译错误strcat

时间:2015-02-18 17:58:40

标签: assembly compilation nasm

我有一个包含文件io.inc here和一个基本程序

; hello.asm - a "hello, world" program using NASM
%include "io.inc"
section .text

global CMAIN                ; make the main function externally visible

CMAIN:
    mov eax, 0
    PRINT_DEC 4, eax
    ret

我在编译时遇到这些错误(nasm -f macho hello.asm -DDARWIN):
    hello.asm:9:错误:(___ MAKE_FORMAT_STR:8)未知的预处理器指令`%strcat'     hello.asm:9:错误:行开头预期的标签或指令

所以,显然strcat有问题。任何想法如何解决它?
提前致谢。

0 个答案:

没有答案