Watcom C++

Status
Not open for further replies.

orbitaali

Solid State Member
Messages
13
Watcom C++ compiler isn't compiling even hello world from the command line in windows xp. It doesnt give any error messages (unless source file has errors) and it just won't produce the .exe file from source code.
In addition, the graphical IDE works and produces windowed executables from the sample programs that were included with Watcom C++.
What might be the problem here?
 
That brings back a few memories. Not particularly good ones mind you, don't you find watcom incredibly clunky?
Anyway the problem might be that you are not providing the correct options on the command line but it's difficult to know from the information provided.
I could suggest a nicer IDE which might make your life a little easier...
 
I thought it would just work like this: wpp386 hello.cpp
It gives this message:
Open Watcom C++32 Optimizing Compiler Version 1.9
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See Main Page - Open Watcom for details.
hello.cpp: 7 lines, included 1800, no warnings, no errors
Code size: 40

And that's it. No .exe file. It does make an .obj file however.
 
C:\cpp>wpp386 hello.cpp -o hello_world.exe
Open Watcom C++32 Optimizing Compiler Version 1.9
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See Main Page - Open Watcom for details.
Error! E068: invalid option
Note! N746: processing command line, switch: -o
hello.cpp: 7 lines, included 1800, no warnings, 1 error

Nope, doesn't work :(
-o is for optimization, not output.

And if I leave -o out of it, it will give this error:
Error! E059: unable to open 'hello_world.exe'
 
Status
Not open for further replies.
Back
Top Bottom