当前位置: 代码迷 >> AIX >> xlc编译碰到重复定义
  详细解决方案

xlc编译碰到重复定义

热度:2603   发布时间:2013-02-26 00:00:00.0
xlc编译遇到重复定义
旧机器上面没问题,搬到新机器上面后makfile:
xlC_r -brtl -g -O2 -DMITRACE_OFF -DIT_HAS_DISTINCT_LONG_DOUBLE -DIT_COMPILER_HAS_LONG_LONG -DIT_DO_NOT_SIMULATE_BOOL -D_INCLUDE_POSIX_SOURCE -D_PROTOTYPES -D_INCLUDE_XOPEN_SOURCE -D_H_LOCALEDEF -D_DEBUG -c startsvrMain.cpp -I../inc -I/usr/local/SRBC2.0/include -I../../nmbase/include -I../../agent/include -I/inc -I/informix/incl/public -I/informix/incl -I/informix/incl/esql
"/usr/local/SRBC2.0/include/Logger_Impl.h", line 14.1: 1540-0400 (S) "ostream" has a conflicting declaration.
"/usr/vacpp/include/iostream.h", line 692.7: 1540-0425 (I) "ostream" is defined on line 692 of "/usr/vacpp/include/iostream.h".
"/usr/vacpp/include/iostream.h", line 74.7: 1540-0424 (I) "ostream" is declared on line 74 of "/usr/vacpp/include/iostream.h".
gmake: *** [startsvrMain.o] Error 1
问下是什么情况
------解决方案--------------------------------------------------------
"/usr/local/SRBC2.0/include/Logger_Impl.h", line 14.1

自己定义了一个ostream ?
  相关解决方案