Hi,
i want test Watcom c++, but i have the problem to compile easy code.
In visual c++ is that code no problem:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string mystring = "Hello";
cout << mystring << endl;
cin >> mystring;
cout << mystring;
return 0;
}
And the compiler error:
cd C:\WATCOM\programmieren
wmake -f C:\WATCOM\programmieren\noname.mk -h -e -a C:\WATCOM\programmieren\u.obj
wpp386 u.cpp -i=C:\WATCOM\h;C:\WATCOM\h\nt -w4 -e25 -zq -od -d2 -6r -bt=nt -mf -xs -xr
u.cpp(8): Error! E157: col(10) left expression must be integral
u.cpp(8): Note! N717: col(10) left operand type is 'std:

stream watcall (lvalue)'
u.cpp(8): Note! N718: col(10) right operand type is 'std::basic_string<char,std::char_traits<char>,std ::allocator<char>> (lvalue)'
u.cpp(9): Error! E157: col(9) left expression must be integral
u.cpp(9): Note! N717: col(9) left operand type is 'std::istream watcall (lvalue)'
u.cpp(9): Note! N718: col(9) right operand type is 'std::basic_string<char,std::char_traits<char>,std ::allocator<char>> (lvalue)'
u.cpp(10): Error! E157: col(10) left expression must be integral
u.cpp(10): Note! N717: col(10) left operand type is 'std:

stream watcall (lvalue)'
u.cpp(10): Note! N718: col(10) right operand type is 'std::basic_string<char,std::char_traits<char>,std ::allocator<char>> (lvalue)'
Error(E42): Last command making (C:\WATCOM\programmieren\u.obj) returned a bad status
Error(E02): Make execution terminated
Execution complete
PLEASE can anybody help me?