openWatCom c++ will einfach nicht compilieren
-
Hallo,
ich probiere openWatcom c++ aus, dass soll auch ein schneller und code-nicht-aufblähender 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 = "Hello";
cout << mystring << endl;
cin >> mystring;
cout << mystring;return 0;
}Und der Compiler gibt aus:
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 completeKann mir jemand helfen?
Ich 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, aber alle Einstellungsänderungsversuche meinerseits sind kläglich gescheitert.Danke vorab.
-
habe den watcom nicht, jedoch finde ich das, vielleicht hilfts..
To install STLport, you do the following:
- Download a STLport distribution. This can be found at:
-
Unzip the distribution to a directory of your choice. It might be a good
idea to let the distribution create a directory under your %watcom%
directory because then you can use the environment variable %watcom% which
Watcom sets during setup. -
Turn off SGI IOStream support in file %stlport_include%\stl_user_config.h.
Where %stlport_include% is the STLport include directory. It differs
between versions. E.g. for Version 3.12.3 it was %stlport%\stl and for 4.0
it was %stlport%\stlport. Where %stlport% is the directory where you
installed STLport. Please read the STLport documentation for details which
you should do anyway. -
Compile the 'Hello, World!' application and do not forget to add the
%stlport_include% directory as the first(!) include directory. (Remember
that you can use the .BEFORE: section in your makefiles to modify your
INCLUDE environment variable without modifying it in a system-wide or
account-wide manner.)
#include <iostream>
#include <string>int main() {
std::string s = "Hello, World!\n";
std::cout << s;
return 0;
}If this compiles you can be sure that the installation was successful.
The SLTport forums (http://www.stlport.com/cgi-bin/forum/dcboard.cgi)
include information on for to build cleanly with no warnings, support for
SGI's IOStream, numerous bugfixes and other related discussions.Some of the required fixes can be found on Mark Neifer's WATCOM STL page
here:aus: http://www.azillionmonkeys.com/qed/watfaq.txt
leis mal in deiner faq nach, was du wie installieren musst.
-
Dieser Thread wurde von Moderator/in GPC aus dem Forum Andere GUIs - Qt, GTK+, wxWidgets in das Forum Compiler- und IDE-Forum verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.