从vckbase上下了fport的源文件,http://www.vckbase.com/document/viewdoc/?id=978(就是这个vc工程文件)
可是编译后提示“Cannot open precompiled header file: 'Release/FPort.pch': No such file or directory...”,请问这是怎么回事??急!!!
可是编译后提示“Cannot open precompiled header file: 'Release/FPort.pch': No such file or directory...”,请问这是怎么回事??急!!!
Compiling...
StdAfx.cpp
E:\学习\C++\VC++\VC++ code\fport\FPort\stdafx.h(28) : fatal error C1083: Cannot open include file: 'Iphlpapi.h': No such file or directory
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\StdAfx.sbr': No such file or directoryto:hjunxu(hjun)
麻烦您下载下那个fport文件,看能否编译通过?
第二个错误是因为stdafx.h没有编译成功导致的
全是在stdafx.h中,都是指到这一行:
typedef struct _IO_STATUS_BLOCK {
union {
NTSTATUS Status;
PVOID Pointer;
};
ULONG_PTR Information;//这一行错误!
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;E:\学习\C++\VC++\VC++ code\fport\FPort\stdafx.h(121) : error C2146: syntax error : missing ';' before identifier 'Information'
E:\学习\C++\VC++\VC++ code\fport\FPort\stdafx.h(121) : error C2501: 'ULONG_PTR' : missing storage-class or type specifiers
E:\学习\C++\VC++\VC++ code\fport\FPort\stdafx.h(121) : error C2501: 'Information' : missing storage-class or type specifiers
http://www.vckbase.com/document/viewdoc/?id=978
他说 ULONG_PTR没有定义格。
typedef unsigned __int64 ULONG_PTR, *PULONG_PTR;
#else
typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR;
#endif
偶用VC7.0编译通过了,ULONG_PTR定义如上。
偶看#define ULONG_PTR DWORD这样也可以。
oyljerry,hjunxu(hjun),可以把你们的编译运行通过的fport程序发给我吗??
[email protected]
很是郁闷~!你那可以正常运行吗??