首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

xlc编译遇到重复定义,该如何处理

2012-02-09 
xlc编译遇到重复定义旧机器上面没问题,搬到新机器上面后makfile:xlC_r -brtl -g -O2 -DMITRACE_OFF -DIT_H

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 ?

热点排行