Estou tentando chamar uma função C x86, printf
, em assembly, mas há um erro de vinculação: error LNK2019: unresolved external symbol _printf referenced in function _main
.
.model flat, C
.code
extern printf: proc
main proc
push offset msg
push offset fmt
call printf
ret
main endp
.data
msg db "Hello world!", 0
fmt db "%s", 0
end
Como posso resolver esse problema?