当前位置: 技术问答>linux和unix
xlc编译遇到重复定义
来源: 互联网 发布时间:2016-12-15
本文导语: 旧机器上面没问题,搬到新机器上面后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 sta...
旧机器上面没问题,搬到新机器上面后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
问下是什么情况
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 ?
自己定义了一个ostream ?