I am trying to use the STL for C++ on Compaq. From what I read in
the man pages and several online documentation, it is recommended that
in order to use the STL on COMPAQ , I need to use the following flag -
__USE_STD_IOSTR EAM. The compilation goes through fine, but at the
linking time, I get the following errors -
Unresolved:
std::basic_istr eam<char, std::char_trait s<char> >::getline(char *,
long, char)
std::basic_ifst ream<char, std::char_trait s<char>
::basic_ifstre am(const char*, int, long)
std::basic_ifst ream<char, std::char_trait s<char>::~basic_ifstr eam(void)
std::basic_istr eam<char, std::char_trait s<char> >::putback(char )
std::basic_istr eam<char, std::char_trait s<char> >::peek(void)
std::operator >>(std::basic_i stream<char, std::char_trait s<char> >&,
char*)
std::ws(std::ba sic_istream<cha r, std::char_trait s<char> >&)
std::basic_ostr ingstream<char, std::char_trait s<char>,
std::allocator< char> >::b
asic_ostringstr eam(int)
std::basic_ostr eam<char, std::char_trait s<char> >::operator
<<(std::ios_bas e& (*
)(std::ios_base &))
std::basic_istr eam<char, std::char_trait s<char> >::get(char*, long,
char)
std::basic_istr eam<char, std::char_trait s<char> >::operator
(std::ios_bas e& (*
)(std::ios_base &))
*** Exit 1
Any idea why this is happening.
I am using the cxx compiler version
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver
I have also tried to explicitly link with the libcxxstd.a file, but
that also does not seem to resolve this issue. Any guesses what is
happening here, and what options do I have. Am I missing a patch of
somekind, in order to have the STL support?
Any help would be very much appreciated.
Thanks and Regards,
Abhi