Re: [Lapackpp-devel] How to solve this compiling error on Compaq Tru64 UNIX
Status: Beta
Brought to you by:
cstim
From: Christian S. <sti...@tu...> - 2006-05-24 08:25:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm sorry, your compiler and stdc++ environment is so different from what I have that I actually can't help you here. Lapackpp uses the <iosfwd> include file, which is part of a "normal" standard c++ library, but if your system has a "non-normal" c++ library, then you have to figure out the differences for yourself. Same for std::ostringstream. Maybe instead of <iosfwd> you can include <ostream> or <istream>, whichever is needed. Maybe instead of std::ostringstream, the class might be called std::ostrstream on your system. Christian Cheng Guo schrieb: > It solved the problem, thank you! > > However I encountered another three kinds of error which I think is > related. The first kind is like this: > _______________________________________________________________________________________ > > cxx: Error: ../../include/vd.h, line 119: namespace "std" has no member > "ostream" > friend std::ostream& operator<<(std::ostream&, const VectorDouble&); > ----------------^ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Deleting all the "std::" in the source file can solve this problem > thought it's not a very easy task. > > Second problem is: > _______________________________________________________________________________________ > > cxx: Error: /usr/lib/cmplrs/cxx/V6.5-014/include/cxx/iosfwd, line 58: > #error > directive: "cannot include iosfwd -- define __USE_STD_IOSTREAM to > override default - see section 7.1.2 of the C++ Using Guide" > #error "cannot include iosfwd -- define __USE_STD_IOSTREAM to override > default - see section 7.1.2 of the C++ Using Guide" > -^ > cxx: Error: /usr/lib/cmplrs/cxx/V6.5-014/include/cxx/sstream, line 58: > #error > directive: "cannot include sstream -- define __USE_STD_IOSTREAM to > override default - see section 7.1.2 of the C++ Using Guide" > #error "cannot include sstream -- define __USE_STD_IOSTREAM to override > default - see section 7.1.2 of the C++ Using Guide" > -^ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > The third error is: > __________________________________________________________________________________________ > > cxx: Error: ../../include/lacomplex, line 487: identifier > "ostringstream" is > undefined > detected during instantiation of "ostream > &la::operator<<(ostream &, > const la::complex<_Tp> &) [with _Tp=double]" > ostringstream __s; > ------^ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > I don't know how to get rid of them. > > > > Cheng > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBRHQY5mXAi+BfhivFAQKppwQApZb0/mZf6m5T75EOZD0frbEs1NgZS96K lNhY9fERRU7wSnDkEmNQROZZbrkkrHhBC2M9Jk99k9qexmMP6xb9f7aWh0eu2EIG 3rbDp5XB9otIhGsoyABMheJzHdoZzKgu7RMYFxNvBrfmzUN4k2i213GViUEYOCdJ /yWk33b9V1U= =qH6S -----END PGP SIGNATURE----- |