Hello all-
Has anyone successfully used C++ under Tru64 to build a library and then
include that C++ library in subsequent links? I had no problem building the
library, but when I try to use it I'm getting a bunch of linker errors (which
appear below). I've called this on in to Compaq, but they were unable to
solve the problem. It looks like my library may be pulling in something from
the standard C++ library, but when subsequent programs try to link to the
same they fail. I have a work around of just including the source of
everything in one .cpp (or .C) file, but I'd rather not have to continue
working this way.
Thanks for any responses, and I will summarize to the list.
# make
cxx -lmynewlib myprog.C -g -DPROMPT -I/usr/local/adm/include
-L/usr/local/adm/lib \
-o myprog -lldapssl40 -lpq -lsecurity -lmynewlib
ld:
Unresolved:
is_valid_form(char*)
get_single_ptree_record(const char*, char*)
std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(void)
std::basic_ifstream<char, std::char_traits<char> >::open(const char*, int,
long)
std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream(void)
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>
>::basic_ostringstream(int)
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>
>::str(void) const
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>
>::~basic_ostringstream(void)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_RWclone(void)
_RWrwstd::rw_extract_string(std::basic_istream<char, std::char_traits<char>
>&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
std::char_traits<char>)
std::getline(std::basic_istream<char, std::char_traits<char> >&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, char)
*** Exit 1
Stop.
Received on Fri Jun 01 2001 - 16:56:40 NZST