W
wolverine
Hi
Could any one tell me how to compile the code using wstring with
g++ or gcc. I am using gcc version 3.4.2
#include<iostream>
#include<string>
using namespace std;
int main()
{
std::wstring str("ABC");
return 0;
}
This is the error message i got when i compiled the code
g++ program.cpp
wstring.cpp:7: no matching function for call to
`std::basic_string<wchar_t,
Thanks in Advance
Kiran Pradeep
Could any one tell me how to compile the code using wstring with
g++ or gcc. I am using gcc version 3.4.2
#include<iostream>
#include<string>
using namespace std;
int main()
{
std::wstring str("ABC");
return 0;
}
This is the error message i got when i compiled the code
g++ program.cpp
wstring.cpp:7: no matching function for call to
`std::basic_string<wchar_t,
char[4])'::basic_string(const
Thanks in Advance
Kiran Pradeep