网站公告列表

  没有公告

加入收藏
设为首页
联系站长
您现在的位置: 网络学院 >> 程序设计 >> VC编程 >> 文章正文
  使用ICE遇到的编译问题            【字体:
使用ICE遇到的编译问题
作者:佚名    文章来源:不详    点击数:    更新时间:2007-9-12    

使用ICE遇到的编译问题  

 

使用前,先要进行如下设置:
添加/GR编译选项 Enable C++ RTTI。
正在装载数据……

添加ice的include、StlPort的include、ice的lib路径,并将这些路径提到最前,以免与VC的冲突。
为Link Object/Library modles 加上iced.lib iceutild.lib 。
1、编译中出现

Linking
LINK : fatal error LNK1104: cannot open file "stlport_vc6_static.lib"
Error executing link.exe.

解决办法:
Porject->Setting->C++->CodeGeneration 设置Use Run-time library=Debug Multithreaded DLL
2、编译中出现

warning C4005: '_STLP_DEBUG_CHECK' : macro redefinition

解决办法:在包含ice/ice.h之前添加以下代码

#if !defined(NDEBUG) && !defined(_STLP_DEBUG)
# define _STLP_DEBUG
#endif

3、编译中出现

error C2065: 'TryEnterCriticalSection' : undeclared identifier

解决办法:
在stdafx.h中,加上

#ifndef _WIN32_WINNT
#   define _WIN32_WINNT 0x400
#endif

4、编译中出现

error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceUtil::GCRecMutexInit::GCRecMutexInit(void)" (__imp_??0GCRecMutexInit@IceUtil@@QAE@XZ)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceUtil::GCRecMutexInit::~GCRecMutexInit(void)" (__imp_??1GCRecMutexInit@IceUtil@@QAE@XZ)
D

解决办法:
Porject->Setting->Link-> Object/Library modles:加上iced.lib iceutild.lib
5、编译中出现

error C2061: syntax error : identifier 'SC_HANDLE'
error C2061: syntax error : identifier 'SERVICE_STATUS'
error C2146: syntax error : missing ';' before identifier '_statusHandle'
error C2501: 'SERVICE_STATUS_HANDLE' : missing storage-class or type specifiers
error C2501: '_statusHandle' : missing storage-class or type specifiers
error C2146: syntax error : missing ';' before identifier '_status'
error C2501: 'SERVICE_STATUS' : missing storage-class or type specifiers
error C2501: '_status' : missing storage-class or type specifiers

解决办法:
在stdafx.h或其他文件中增加

#include  <WINSVC.H>

作者:李珍宝(http://zhenbaodao51.51.net ,http://www.lizhenbao.com , http://www.cnitblog.com/lizhenbao/ )




本文来源:http://blog.csdn.net/Ackarlix/archive/2007/08/23/1756198.aspx
站内文章搜索 高级搜索
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
     directx 图形接口指南(…
     win2k下的api函数的拦截
     用crypto  api  实现公钥…
     根据别人的md5源码封装的…
     vc中使用gdi+合并jpg图片
     document/view的交互 --…
     windows下的函数hook技术
     windows api函数大全一
     用vc 6.0实现串行通信的…
     vc++技术内幕(第四版)…
  • page、request、session、ap…

  • 快速、简便使用AJAX技术的三…

  • weblogic 9.1的domain配置my…

  • 保留weblogic 中jsp编译后生…

  • Ant入门-配置和使用     选…

  • ant使用简介

  • 浅析Spring框架下PropertyPl…

  • java现状----编程使用的语言…

  • Cookie又见Cookie-使用Html…

  • 一个关于Comparator的使用例…

  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    网络学院©2007 www.23book.net
    为您提供web编程,vb编程,vc编程,服务器架设管理,数据库设计等方面的知识 站长:David