level 8
LNK1120
debug
而且我以前编译过了的cpp文件 前面加上#include<graphics.h>
都会出现连接错误 貌似是printf和scanf连接不上
求教
2012年05月23日 06点05分
1
level 8
12.04
error LNK2019: 无法解析的外部符号 __imp__system,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __imp__scanf,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __imp__printf,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 ___security_cookie,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 @__security_check_cookie@4,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 @_RTC_CheckStackVars@8,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __chkstk,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __RTC_CheckEsp,该符号在函数 _main 中被引用
error LNK2001: 无法解析的外部符号 __RTC_Shutdown
error LNK2001: 无法解析的外部符号 __RTC_InitBase
1>LINK : error LNK2001: 无法解析的外部符号 _mainCRTStartup
2012年05月23日 06点05分
7
level 8
还是编译不过
就是只要头文件里面有graphics.h
下面程序里面就不能有printf和scanf等函数出现
2012年05月23日 07点05分
10
level 11
你确定是2010?你建立的是什么样的工程?控制台吗?我测试过是正常的,你的头文件有额外的东西吗?给我看一下你最前面的#include几行是怎么写的
2012年05月23日 07点05分
11
level 11
如果你用的是最新,那你把ege.h里的115,116,117行注释掉再重新编译
或者改用release编译试试
2012年05月23日 08点05分
14
level 8
注释以后编译不过
error LNK2019: 无法解析的外部符号 __imp__system,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __imp__scanf,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __imp__printf,该符号在函数 _main 中被引用
error LNK2001: 无法解析的外部符号 __fltused
error LNK2019: 无法解析的外部符号 @_RTC_CheckStackVars@8,该符号在函数 _main 中被引用
error LNK2019: 无法解析的外部符号 __RTC_CheckEsp,该符号在函数 _main 中被引用
error LNK2001: 无法解析的外部符号 __RTC_Shutdown
error LNK2001: 无法解析的外部符号 __RTC_InitBase
1>LINK : error LNK2001: 无法解析的外部符号 _mainCRTStartup
2012年05月23日 08点05分
15
level 8
debug换release以后编译过了 但是dos界面只有按任意键继续
2012年05月23日 08点05分
16
level 11
要重新编译,不是只按编译就行,要菜单选 “全部重新编译”
2012年05月23日 08点05分
17
level 8
好吧 我建一个新工程吧 还有dos界面和ege界面能不能同时存在?
2012年05月23日 09点05分
21