--------------------Configuration: MD5DLLVC - Win32 Debug--------------------
Compiling...
MD5c.c
d:\vss\md5web\md5dllvc\md5c.c(337) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.MD5DLLVC.dll - 1 error(s), 0 warning(s)这是什么问题呢!
我以前也遇到这样的问题,但以前是怎么解决的忘了!
请知道的兄弟帮我个忙。谢谢了!
Compiling...
MD5c.c
d:\vss\md5web\md5dllvc\md5c.c(337) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.MD5DLLVC.dll - 1 error(s), 0 warning(s)这是什么问题呢!
我以前也遇到这样的问题,但以前是怎么解决的忘了!
请知道的兄弟帮我个忙。谢谢了!
#include "stdafx.h";
预编译头的作用:
要使用预编译头,我们必须指定一个头文件,这个头文件包含我们不会经常改变的代码和其他的头文件,然后我们用这个头文件来生成一个预编译头文件(.pch文件)VC工程里的 StdAfx.h这个文件就是这样一个头文件,它是可以任意命名的,只不过VC的默认命名为StdAfx.h。可以在VC的project -> settings -> C/C++ -> Precompiled Header中禁止使用预编译头文件。
选择C/C++
在Category中选择Precompiled Header
然后选择Automatic use of precompiled headers
Compiling...
MD5c.cpp
D:\VSS\MD5web\MD5DLLVC\MD5c.cpp(27) : fatal error C1083: Cannot open include file: 'global.h': No such file or directory
Error executing cl.exe.MD5DLLVC.dll - 1 error(s), 0 warning(s)这是加了#include "stdafx.h"后出现的问题。
而'global.h'文件是在加入前是没有出现这样的提示的。
应该是要加入#include "stdafx.h",
我马上就结帐
谢谢!
下次有问题,请再帮我!
thanks