I
ing. Jan Chládek
I need compile ANSI C++ source file under Windows.
For some reasons I can't use MS Visual Studio, then I trying GCC port for
Windows.
But for this simple a.cpp:
#include <string>
#include <iostream>
using namespace std;
int main (int argc, char * argv[]) {
wstring x;
wcout<<x;
return 0;
}
I've got these error messages:
1) in DJGPP 2.03, gxx 3.4.3
a.cpp: In function `int main(int, char**)':
a.cpp:5: error: `wstring' undeclared (first use this function)
a.cpp:5: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cpp:5: error: expected `;' before "x"
a.cpp:6: error: `wcout' undeclared (first use this function)
a.cpp:6: error: `x' undeclared (first use this function)
2) in cygwin 1.5.13, g++ 3.3.3
a.cpp: In function `int main(int, char**)':
a.cpp:5: error: `wstring' undeclared (first use this function)
a.cpp:5: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cpp:5: error: parse error before `;' token
a.cpp:6: error: `wcout' undeclared (first use this function)
a.cpp:6: error: `x' undeclared (first use this function)
Do you somebody know how to compile Unicode sources until GCC for Windows?
Or exists any other free (full ANSI) C++ compiler for Windows?
Thanks
For some reasons I can't use MS Visual Studio, then I trying GCC port for
Windows.
But for this simple a.cpp:
#include <string>
#include <iostream>
using namespace std;
int main (int argc, char * argv[]) {
wstring x;
wcout<<x;
return 0;
}
I've got these error messages:
1) in DJGPP 2.03, gxx 3.4.3
a.cpp: In function `int main(int, char**)':
a.cpp:5: error: `wstring' undeclared (first use this function)
a.cpp:5: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cpp:5: error: expected `;' before "x"
a.cpp:6: error: `wcout' undeclared (first use this function)
a.cpp:6: error: `x' undeclared (first use this function)
2) in cygwin 1.5.13, g++ 3.3.3
a.cpp: In function `int main(int, char**)':
a.cpp:5: error: `wstring' undeclared (first use this function)
a.cpp:5: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cpp:5: error: parse error before `;' token
a.cpp:6: error: `wcout' undeclared (first use this function)
a.cpp:6: error: `x' undeclared (first use this function)
Do you somebody know how to compile Unicode sources until GCC for Windows?
Or exists any other free (full ANSI) C++ compiler for Windows?
Thanks