wstring compilation using gcc 3.2.3 on FreeBSD 4.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux