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, std::char_traits<wchar_t>,
std::allocator<wchar_t>>::basic_string(const
Re: How do I install this missing library? ... you really should be carefully following LSTC's installation... libg2c is part of gcc.... to tell a newcomer to compile.... like the source code to GNU tar, and make sure you understand what's ... (comp.os.linux.misc)
Re: HPGCC Questions ladies and gentlemen!!! ... No matter how you slice it in order to compile a C program you need to know ... it took a few hours just to get gcc running in my computer ... of the students that used an ide in the c++ class I took a few years ago. ... so why not use a data inspector if it's available? ... (comp.sys.hp48)
Re: Aquarius prolog so fast? ...Mercury cannot do all this because Mercury cannot keep track of the fact ... you need this capability quite rarely, ... Why not the alternative GCC back-end,... While Mercury can compile to the internal data structures of the gcc backend, ... (comp.lang.prolog)
Re: Question about gcc on OS X 10.0.4.11 Tiger ... running Linux and gcc 4.0.2. ... How do I switch to a different version of gcc to compile with on OS X ... fgetsis a libc function and is not really part of the compiler. ... int main(int argc, char* argv){ ... (comp.sys.mac.programmer.help)
Re: gcc install ... > a good book on the topic of gcc and went about trying to set it up when ... > to get a precompiled compiler to compile the compiler LOL. ... - install the Sun Studio tools, they live in /opt/SUNWspro, modify ... Companion CD - installs in /opt/sfw you can get a GNU make and a gcc ... (comp.unix.solaris)