免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1691 | 回复: 0
打印 上一主题 下一主题

[C++] linux/c++/informix/demo 编译出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-18 12:42 |只看该作者 |倒序浏览
RHEL AS4下编译IDS94 demo出错,请高人指点

  1. /usr/bin/g++  -g -DIT_DO_NOT_SIMULATE_BOOL -DIT_HAS_DISTINCT_LONG_DOUBLE -DIT_COMPILER_HAS_LONG_LONG -DIT_DLLIB -DMITRACE_OFF -I/home/informix/incl/c++ -I/home/informix/incl/dmi -I/home/informix/incl -I/home/informix/incl/esql -c testtype.cpp
  2. In file included from /usr/include/c++/3.2.3/backward/iostream.h:31,
  3.                  from /home/informix/incl/c++/itcppop.h:90,
  4.                  from /home/informix/incl/c++/it.h:123,
  5.                  from testtype.cpp:21:
  6. /usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
  7. In file included from /usr/include/c++/3.2.3/clocale:49,
  8.                  from /usr/include/c++/3.2.3/i386-redhat-linux/bits/c++locale.h:36,
  9.                  from /usr/include/c++/3.2.3/bits/localefwd.h:46,
  10.                  from /usr/include/c++/3.2.3/ios:48,
  11.                  from /usr/include/c++/3.2.3/ostream:45,
  12.                  from /usr/include/c++/3.2.3/iostream:45,
  13.                  from /usr/include/c++/3.2.3/backward/iostream.h:32,
  14.                  from /home/informix/incl/c++/itcppop.h:90,
  15.                  from /home/informix/incl/c++/it.h:123,
  16.                  from testtype.cpp:21:
  17. /usr/include/locale.h:148: conflicting types for `typedef struct
  18.    __locale_struct*locale_t'
  19. /home/informix/incl/dmi/gls.h:926: previous declaration as `typedef
  20.    void*locale_t'
  21. testtype.cpp: In member function `virtual const ITString&
  22.    TestType::Printable()':
  23. testtype.cpp:193: `hex' undeclared (first use this function)
  24. testtype.cpp:193: (Each undeclared identifier is reported only once for each
  25.    function it appears in.)
  26. make: *** [testtype.o] Error 1
复制代码

这两行怎么解决?
usr/include/locale.h:148: conflicting types for `typedef struct
   __locale_struct*locale_t'
/home/informix/incl/dmi/gls.h:926: previous declaration as `typedef
   void*locale_t'
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP