You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Prakash Babu <jp...@yahoo.co.in> on 2005/10/24 14:55:37 UTC
Build problems with Xalan 1.10 on HPUX
Hello All,
I am working on HPUX 11v1.
I am facing the following build problem
aCC -AA -g +DAportable +Z -DHPUX -D_THREAD_SAFE +W849,930 -mt -Wc,-koenig_lookup,on -Wc,-ansi_for_scope,on -DXALAN_INMEM_MSG_LOADER -c -I/disk1/release6/xercesc/Tar/xml-xalan/c/src -I/disk1/release6/xercesc/Tar/xml-xalan/c/include -I../nls/include -I/opt/iexpress/xercesc/src/ -I/opt/iexpress/xercesc/include/xercesc -I/opt/iexpress/xercesc/include/ -o ../obj/Parameters.o /disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/Parameters.cpp
Error 475: "/opt/aCC/include_std/iosfwd", line 156 # Cannot generate a specialization of incomplete template class
basic_istringstream<char,std::char_traits<char>,std::allocator<char> > ["/opt/aCC/include_std/iosfwd", line 156].
typedef basic_istringstream<char> istringstream
^^^^^^^^^^^^^^^^^^^^^^^^^
Error 628: "/disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/TestHarness.hpp", line 256 #
"std::basic_istringstream<char,std::char_traits<char>,std::allocator<char> > inputStream"
["/disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/TestHarness.hpp", line 256] cannot be defined to have an
incomplete type.
istringstream inputStream;
^^^^^^^^^^^
gmake: *** [../obj/Parameters.o] Error 2
This seems to be a bug with the aCC compiler (ACXX.ACXX : C.03.50).
But is there any workaround or patch to over come this error.
Thanks,
Prakash
---------------------------------
Yahoo! India Matrimony: Find your partner now.
Re: Build problems with Xalan 1.10 on HPUX
Posted by Prakash Babu <jp...@yahoo.co.in>.
Hello All,
The reason for this "specialization of incomplete template " error to occur is, the template class basic_istream definition and declaration are split into two different paths.
Declaration
File : /opt/aCC/include_std/iosfwd
template<class _CharT,
class _Traits _RWSTD_COMPLEX_DEFAULT (char_traits<_CharT>),
class _Allocator _RWSTD_COMPLEX_DEFAULT (allocator<_CharT>) >
class _RWSTD_EXPORT_TEMPLATE basic_istringstream;
Definition
File : /opt/aCC/include_std/sstream
template<class _CharT, class _Traits, class _Allocator>
class _RWSTD_EXPORT_TEMPLATE basic_istringstream
: public basic_istream<_CharT, _Traits>
{
public:
typedef _CharT char_type;
typedef _Traits traits_type;
...
...
private:
basic_stringbuf<char_type, traits_type, allocator_type> _C_sb;
};
Adding
#include <sstream> to the file "xml-xalan/c/Tests/Performance/TestHarness.hpp" fixes the error
Is this workaround correct . Please share your comments on this.
Thanks,
Prakash
Prakash Babu <jp...@yahoo.co.in> wrote:
Hello All,
I am working on HPUX 11v1.
I am facing the following build problem
aCC -AA -g +DAportable +Z -DHPUX -D_THREAD_SAFE +W849,930 -mt -Wc,-koenig_lookup,on -Wc,-ansi_for_scope,on -DXALAN_INMEM_MSG_LOADER -c -I/disk1/release6/xercesc/Tar/xml-xalan/c/src -I/disk1/release6/xercesc/Tar/xml-xalan/c/include -I../nls/include -I/opt/iexpress/xercesc/src/ -I/opt/iexpress/xercesc/include/xercesc -I/opt/iexpress/xercesc/include/ -o ../obj/Parameters.o /disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/Parameters.cpp
Error 475: "/opt/aCC/include_std/iosfwd", line 156 # Cannot generate a specialization of incomplete template class
basic_istringstream<char,std::char_traits<char>,std::allocator<char> > ["/opt/aCC/include_std/iosfwd", line 156].
typedef basic_istringstream<char> istringstream
^^^^^^^^^^^^^^^^^^^^^^^^^
Error 628: "/disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/TestHarness.hpp", line 256 #
"std::basic_istringstream<char,std::char_traits<char>,std::allocator<char> > inputStream"
["/disk1/release6/xercesc/Tar/xml-xalan/c/Tests/Performance/TestHarness.hpp", line 256] cannot be defined to have an
incomplete type.
istringstream inputStream;
^^^^^^^^^^^
gmake: *** [../obj/Parameters.o] Error 2
This seems to be a bug with the aCC compiler (ACXX.ACXX : C.03.50).
But is there any workaround or patch to over come this error.
Thanks,
Prakash
---------------------------------
Yahoo! India Matrimony: Find your partner now.
---------------------------------
Yahoo! India Matrimony: Find your partner now.