public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* wstring compilation using gcc 3.2.3 on FreeBSD 4.8
@ 2008-07-23 10:14 Ashutosh Lucky
  0 siblings, 0 replies; only message in thread
From: Ashutosh Lucky @ 2008-07-23 10:14 UTC (permalink / raw)
  To: gcc-help

Hi,

I want to use wstring and the FreeBSD 4.8 by default had gcc 2.95

So I have installed gcc 3.2.3 

Now when i am compiling sample code

==============================
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
        std::wstring str(L"Ashutosh");
        return 0;
}
==============================

while compiling using 'g++ sample.cpp'

I am getting error:

sample.cpp: In function `int main()':
sample.cpp:5: `wstring' undeclared in namespace `std'
sample.cpp:5: syntax error before `(' token

I think problem with some configuration but dont know how to fix it.

Any help will be highly appreciated.

Thanks & Regards,
Ashutosh Lucky


      Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-23  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-23 10:14 wstring compilation using gcc 3.2.3 on FreeBSD 4.8 Ashutosh Lucky

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).