编译出错(一个菜鸟)

gaoge1976 2004-12-04 11:43:32
编译一个原代码总是出错,哪为大侠帮一下,谢了!
d:\microsoft visual studio\vc98\include\excpt.h(12) : error C2065: '_open' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(12) : error C2065: '_O_RDWR' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(12) : error C2065: '_O_CREAT' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(12) : error C2065: '_S_IREAD' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(12) : error C2065: '_S_IWRITE' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(14) : error C2065: '_write' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(19) : error C2065: '_close' : undeclared identifier
d:\microsoft visual studio\vc98\include\excpt.h(26) : error C2146: syntax error : missing ';' before identifier 'Wrote'
d:\microsoft visual studio\vc98\include\excpt.h(26) : error C2501: 'Output' : missing storage-class or type specifiers
d:\microsoft visual studio\vc98\include\excpt.h(26) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

SDI.exe - 10 error(s), 0 warning(s)
...全文
83 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hushuangyan74 2004-12-05
  • 打赏
  • 举报
回复
这个问题不太好找,可能要看看你的具体的代码,你可以把代码发到我油箱:hushuangyan74@163.com
或者从QQ上面传给我,我帮你测试一下,应该可以解决的!
gaoge1976 2004-12-05
  • 打赏
  • 举报
回复
添加d:\microsoft visual studio\vc98\include路径,并且移到最上方

按照方法打开tool-》option-》direction发现已经被添加了,且是最上方
bobob 2004-12-04
  • 打赏
  • 举报
回复
tool-》option-》direction
选“include file”,
添加d:\microsoft visual studio\vc98\include路径,并且移到最上方

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧