File main.asm
.586
.model flat,C
printf proto,format:PTR BYTE,Args:VARARG
.data
format BYTE "%.3f",0ah,0dh,0
double1 REAL8 8832.42
.code
_Test proc
invoke printf,offset format,double1
ret
_Test endp
end
File t.c
#include<stdio.h>
extern "C" void _Test();
int main()
{
_Test();
}
Bỏ printf ra thì build vẫn bình thường nhưng khi thêm vào thì ouput báo lỗi:
Error LNK2019:unresolved external symbol _printf referenced in function __Test
Làm sao để giải quyết lỗi này ạ ?