求助
我用vc++ 6.0编译一个程序,编译可以通过,可是连接的时候总是出错,不知为何,大家帮我看看:所有的错误信息为:
--------------------Configuration: port2 - Win32 Debug--------------------
Linking...
rs485.obj : error LNK2001: unresolved external symbol _RCREG2
rs485.obj : error LNK2001: unresolved external symbol _TXREG2
rs485.obj : error LNK2001: unresolved external symbol _SPBRG2
rs485.obj : error LNK2001: unresolved external symbol _RCSTA2
rs485.obj : error LNK2001: unresolved external symbol _TXSTA2
rs485.obj : error LNK2001: unresolved external symbol _PIE3
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/port2.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
port2.exe - 8 error(s), 0 warning(s)
这些变量我在每个文件里都找过,从来就没用过这些变量啊
烦请各位高手帮我看看,谢谢!
[[italic] 本帖最后由 dolphinlove 于 2008-1-22 17:30 编辑 [/italic]]