* c/c++ error
@ 2002-11-06 5:44 Rene Wutschitz
2002-11-06 5:51 ` Rene Wutschitz
0 siblings, 1 reply; 2+ messages in thread
From: Rene Wutschitz @ 2002-11-06 5:44 UTC (permalink / raw)
To: gcc; +Cc: gcc, gnu
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
> 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>>
[-- Attachment #2: wc.cpp --]
[-- Type: application/octet-stream, Size: 326 bytes --]
#include <wchar.h>
int vwscanf ( const wchar_t *format, va_list argptr );
int vfwscanf ( FILE *stream, const wchar_t *format, va_list argptr );
int vswscanf ( const wchar_t *buffer, const wchar_t *format, va_list argptr );
#include <string>
int main()
{
std::wstring kk = L"KK";
printf("%S\n", kk.c_str());
return 0;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/c++ error
2002-11-06 5:44 c/c++ error Rene Wutschitz
@ 2002-11-06 5:51 ` Rene Wutschitz
0 siblings, 0 replies; 2+ messages in thread
From: Rene Wutschitz @ 2002-11-06 5:51 UTC (permalink / raw)
To: gcc; +Cc: gcc, gnu
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
> 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>>
[-- Attachment #2: wc.cpp --]
[-- Type: application/octet-stream, Size: 326 bytes --]
#include <wchar.h>
int vwscanf ( const wchar_t *format, va_list argptr );
int vfwscanf ( FILE *stream, const wchar_t *format, va_list argptr );
int vswscanf ( const wchar_t *buffer, const wchar_t *format, va_list argptr );
#include <string>
int main()
{
std::wstring kk = L"KK";
printf("%S\n", kk.c_str());
return 0;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-06 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 5:44 c/c++ error Rene Wutschitz
2002-11-06 5:51 ` Rene Wutschitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).