C++内联ASM出现连接问题
#include <iostream.h>
void main(void)
{
cout << "About to sound the speaker...\n";
_asm
{
MOV AX,0x0200
MOV DL,7
INT 0x21
};
cout << "Done..\n";
}
_______________________________________________________
--------------------Configuration: asm_demo - Win32 Debug--------------------
Linking...
LIBCMTD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/asm_demo.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
asm_demo.exe - 1 error(s), 0 warning(s)