wstring compilation using gcc 3.2.3 on FreeBSD 4.8
Hi,
I want to use wstring on FreeBSD 4.8.
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,
|