c/c++ error
Rene Wutschitz
Rene.Wutschitz@invaris.com
Wed Nov 6 05:44:00 GMT 2002
> I tried to compile a simple Program (wc.cpp) on a AIX 4.3.3 Server with the GCC 3.2:
>
> gcc wc.cpp -lc -lstdc++
>
> These are the errors i´m getting:
>
> ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](wchar_t const*, std::allocator<wchar_t> const&)
> ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::c_str() const
> ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string [in-charge]()
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> collect2: ld returned 8 exit status
>
> First i thought these errors are because _GLIB_CPP_USE_WCHAR_T was not defined.
> So i defined _GLIB_CPP_USE_WCHAR_T and rebuilt the compiler but i have still the same errors.
>
> Maybe you know how i can avoid the problem?
>
> yours sincerely
>
> -----------------------------------------------------
> René Wutschitz
> Invaris Informationssysteme GmbH
> Invariscenter
> 7000 Eisenstadt
> Tel.: 02682 / 64000 - 534
> mailto:Rene.Wutschitz@Invaris.com
> -----------------------------------------------------
>
<<wc.cpp>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wc.cpp
Type: application/octet-stream
Size: 326 bytes
Desc: wc.cpp
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20021106/fc61548d/attachment.obj>
More information about the Gcc
mailing list