VC2008用STLPort 编译ACE失败
来源:互联网 发布:org.apache.storm 编辑:程序博客网 时间:2024/05/21 06:21
今天在VC2008中用STLport5.2编译ACE,编译器提示error,如下所示:
D:/ACE57SRC/ACE_wrappers/ace/checked_iterator.h(42) :error C2653: 'stdext' : is not a class or namespace name
D:/ACE57SRC/ACE_wrappers/ace/checked_iterator.h(42) :error C2143: syntax error : missing ';' before '<'
解决方案如下:
在checked_iterator.h中把下面代码
# if defined (_MSC_VER) && (_MSC_FULL_VER >= 140050000)
template <typename PTR>
stdext::checked_array_iterator<PTR>
ACE_make_checked_array_iterator (PTR buf, size_t len)
修改为:
# if (defined (_MSC_VER)) && (_MSC_FULL_VER >= 140050000) && (!defined (_STLPORT_VERSION))
# include <iterator>
# endif /* _MSC_VER >= 1400 */
# if (defined (_MSC_VER)) && (_MSC_FULL_VER >= 140050000) && (!defined (_STLPORT_VERSION))
template <typename PTR>
stdext::checked_array_iterator<PTR>
修改后重新编译,编译成功!
- VC2008用STLPort 编译ACE失败
- MSVC2005 +STLPort 编译ACE失败
- VC2008+ACE+SSL编译方法
- 用 VC6 编译 log4cplus + stlport
- 用 VC6 编译 log4cplus + stlport
- STLport编译:
- 用批处理编译VC2008工程
- 用批处理编译VC2008工程
- Windows下STLPort和ACE
- 用VC6编译STLPORT(ZT)
- 编译stlport及boost
- STLPort库的编译
- STLPort编译---闵孝忠写
- STLPort 5.1.5 编译
- STLPort vc编译
- vc2005编译使用stlport
- stlport 编译方法
- VS2010 编译 STLPORT
- Can’t connect to local MySQL server through socket 解决办法
- c# 选择文件夹 两种方式
- ubuntu下的libfetion飞信
- (转)4步实现DD-WRT贝尔金7231脱机BT
- C语言经典问答
- VC2008用STLPort 编译ACE失败
- WINCE 系统中的同步机制
- 使用伪Url地址(伪静态)
- 各种开源协议的比较
- DedeCMS模板常用标签
- 毕业了,要走了!
- 新的Sql分页的方法,效率绝对优先。
- Samba is really cool
- The resposibility of Scrum Master