编译时出现两个连接错误:
htmlhelp.lib(init.obj):error LNK2001:unresolved external symbol_security_cookie.htmlhelp.lib(init.obj):error LNK2001:unresolved external  symbol@_security_check_cookie@p.在tool->option里把htmlhelp.lib的头文件和库文件的设置删除,clean整个工程,重新编译还是出现这个错误。   请问这是怎么回事呢?

解决方案 »

  1.   

        /GS (Buffer Security Check) 
    To set this compiler option in the Visual Studio development environment Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties. 
    Click the C/C++ folder. 
    Click the Code Generation property page. 
    Modify the Buffer Security Check property. 这是microsoft's RTC and security check functions. you can close these functions by parameter of cl.exe 在工程的编译环境中添加/Gs,即Ok 
      

  2.   

       另外到网上搜索了一种做法:到微软的网站下载htmlhelp.exe文件,安装完后,用他安装目录下的Htmlhelp.lib换掉你的SDK下的htmlhelp.lib文件就可以了!     不过我没试过,不知有没有作用!
      

  3.   

       相关网页在这里:http://blog.joycode.com/jiangsheng/archive/2003/11/25/7500.aspx
      

  4.   

    在工程中找到
    htmlhelp.lib
    复制一份放到主工程名称/.LIB下面