FileZilla源码中 config.h中的
#ifndef INVALID_SET_FILE_POINTER
#error Please download and install the latest MS Platform SDK from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
#endif
在编译时报错:
fatal error C1189: #error :  Please download and install the latest MS Platform SDK from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
这个该怎么处理呢? 谢谢

解决方案 »

  1.   

    下载SDK,安装,并把这些h,lib文件加到vc的目录中把INVALID_SET_FILE_POINTER 加到你工程的预定义宏 preprocessor
      

  2.   

    上面不是写得很清楚吗,该代码需要较新版本的SDK,你的系统中安装的SDK版本太旧,找个新点的SDK安装上就可以了。
      

  3.   


    装个vs2003或则2005之类的就是更新了吗? 我这里上不去MS的地址,只能上CSDN...现在用VC6.0,装有vs2005
      

  4.   

    2005的SDK应该比VC6.0新,用2005编译能不出错吗?我编译的是FileZilla的源码,只是2005:
    tt\new\sftp\filezilla_2_2_27_src\source\misc\hyperlink.cpp(71) : error C2440: “static_cast”: 无法从“UINT (__thiscall CHyperLink::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )(CPoint)”
    1>        从基类型到派生类型的强制转换需要 dynamic_cast 或 static_cast
    1>TransferSocket.cpp
    1>d:\development\stt\new\sftp\filezilla_2_2_27_src\source\transfersocket.h(35) : fatal error C1083: 无法打开包括文件:“zlib.h”: No such file or directory
    1>FtpControlSocket.cpp
    1>d:\development\stt\new\sftp\filezilla_2_2_27_src\source\transfersocket.h(35) : fatal error C1083: 无法打开包括文件:“zlib.h”: No such file or directory
    1>ControlSocket.cpp
    1>d:\development\stt\new\sftp\filezilla_2_2_27_src\source\controlsocket.cpp(30) : fatal error C1083: 无法打开包括文件:“idna.h”: No such file or directoryFileZilla提供的代码不全...
      

  5.   

    zlib.h  是zlib开源库的头文件,你需要找到FileZilla的完整代码
      

  6.   

    那你找找你的代码中是否有这个文件,看看代码的说明中是否提到了需要你自己下zlib开发包等
      

  7.   

    1>d:\development\stt\new\sftp\filezilla_2_2_27_src\source\misc\hyperlink.cpp(71) : error C2440: “static_cast”: 无法从“UINT (__thiscall CHyperLink::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )(CPoint)”
    1>        从基类型到派生类型的强制转换需要 dynamic_cast 或 static_cast-----------该怎么处理?
      

  8.   


    这位大哥,新年好!今天我在MS网站上在开发资源4400多个资源中找了个遍,就是没找到网上很多人说的针对VC的新的SDK "Microsoft Platform SDK from August 2001, or Feb. 2003 是合适的" 合适的SDK应该是哪一个呢?我不懂,请指点,谢谢.牛年牛运!