c++ 总是运行错误 执行cl.exe 时出错.

来源:百度知道 编辑:UC知道 时间:2024/05/30 05:36:31
--------------------Configuration: zhujiang - Win32 Debug--------------------
Compiling...
1.cpp
C:\C++ Files\zhujiang\1.cpp(6) : fatal error C1083: Cannot open include file: 'Dll1.h': No such file or directory
执行 cl.exe 时出错.

zhujiang.exe - 1 error(s), 0 warning(s)
每次都出现这个,别人都说行的代码,我这里也不行
c:\c++ files\zhujiang\1.h(3) : fatal error C1016: #if[n]def expected an identifier
执行 cl.exe 时出错.

这又是怎么回事?

不是程序的问题

你的路径设置不对

在[工具],[选项],[目录],相应的东西都设置好就行了

同意小虾米的。。。可以使一下,说不定也没那么复杂,也许是你的头文件写错了,或是你的这个头文件没有加到程序中造成程序报错。。。

缺少这个文件 'Dll1.h'