当前位置: 技术问答>linux和unix
一个很奇怪的问题,向各位大侠求救
来源: 互联网 发布时间:2014-12-05
本文导语: 源代码 #if !defined(XMLENUMERATOR_HPP) #define XMLENUMERATOR_HPP #include template class XMLEnumerator { public : // ----------------------------------------------------------------------- // XMLEnumerator interface // ---------------------------------...
源代码
#if !defined(XMLENUMERATOR_HPP)
#define XMLENUMERATOR_HPP
#include
template class XMLEnumerator
{
public :
// -----------------------------------------------------------------------
// XMLEnumerator interface
// -----------------------------------------------------------------------
virtual bool hasMoreElements() const = 0;
virtual TElem& nextElement() = 0;
virtual void Reset() = 0;
};
#endif
编译之后,出现如下错误,我怎么也搞不清究竟是为什么?环境是aix,请指教
xlC -c -g -I/usr/include/xercesc -I. -I/usr/IBMdb2/V7.1/include -I/var/cics/include -DSELECT -DCICS_LINUX -DKCXP_ENABLE -DDAEMONTHREAD -DUSECICS -DDB2_ENABLE -o public.o public.cpp
1540-5215 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
"/usr/include/xercesc/util/XMLEnumerator.hpp", line 87.30: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/xercesc/util/RefVectorOf.hpp", line 96.30: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/xercesc/util/RefVectorOf.hpp", line 151.30: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/xercesc/util/RefVectorOf.c", line 103.35: 1540-0140 (S) The text "