Supportnet / Forum / Anwendungen(Java,C++...)
FreeWatchCom will einfach nicht compilieren
Frage
Hallo,
ich probiere Free Watchcom aus, dass soll auch der schnellste Compiler sein, und soll auch andere Vorzüge haben.
Aber wenn ich so einen ganz einfache Text compilieren will, dann compiliert er einfach nicht.
Das einfach soll er compilieren:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string mystring = "Hallo";
cout << mystring;
return 0;
}
Und das gibt er als Fehlermeldung aus.
Compiler log file:
cd C:\code
wmake -f C:\code\noname.mk -h -e
wpp386 test.cpp -i=C:\WATCOM\h;C:\WATCOM\h\nt -w4 -e25 -zq -od -d2 -6r -bt=nt -mf -xs -xr
test.cpp(8): Error! E157: col(10) left expression must be integral
test.cpp(8): Note! N717: col(10) left operand type is ´std::ostream (lvalue)´
test.cpp(8): 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:\code\test.obj) returned a bad status
Error(E02): Make execution terminated
Execution complete
Kann mir jemand helfen?
Er compiliert auch nicht wenn ich
cin >> Person1Tag;
Anweisung benute dann sagt der compiler:
Error(E157):col(9) left expression must be integral
verzweifel schon.
Ich benutze auch Visual c++ und da geht alles.
Aber ich will unbedingt den Watchcom compiler ausprobieren und bitte um hilfe.
Vielleicht muss ich ja nur eine Einstellung umstellen oder so.
Danke vorab.
Antwort 1 von JuliaNadine
Entschuldigung,
es heisst open Watcom c/c++ und nicht free Watchcom.
es heisst open Watcom c/c++ und nicht free Watchcom.