(repost) gcc3.1.1 problems under AIX
Jeff Lee
jeff@cdnorthamerica.com
Wed Aug 14 09:06:00 GMT 2002
sorry for the repost, I accidentally sent before finishing...
I successfully compiled gcc3.1.1 under AIX4.3.3 but when I try to
compile this simple program using g++, I get the following errors:
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> a;
a.push_back("Hello world");
}
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string[in-charge](char const*, std::allocator<char> const&)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string [in-charge]()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string[in-charge](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::operator=(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
Is this a problem with AIX assembler or linker? I think it has
something to do with weak symbols being used by g++ for template
instantiation. Has anyone else had this problem? If so, what did you
do to fix it? Any help would be greatly appreciated.
Best Regards,
Jeff
--
Jeff Lee <jeff@cdnorthamerica.com>
Software Engineer
CD North America
21 Lafayette Street, Suite 230
Lebanon, NH 03766
Tel: (603) 643-9993 ext. 109
Fax: (603) 643-9994
More information about the Gcc
mailing list