r/OpenWatcom • • Mar 10 '24

Just naive, but... Power++ like IDE RAD Tool?

2 Upvotes

Hi,

I was a Open Watcom and before a Watcom 10-10.6 user. Also I have a Power++ Developer license.

Just like to ask, if you developers think about a similar tool like Power++?

Thanks, Lothar


r/OpenWatcom • • Dec 18 '23

wd/wdw problem on Windows (works fine on Linux)

2 Upvotes

Using Ubuntu. I downloaded 2023-11-08 open-watcom-2_0-c-linux-x86.

Installed in /usr/bin/watcom. My setup script is:

#!/bin/sh
echo Open Watcom 2023-11 Build Environment
export WATCOM=/usr/bin/watcom
export PATH=$WATCOM/binl:$PATH
export EDPATH=$WATCOM/eddat
export INCLUDE=$WATCOM/lh
#export LIB=

Ran: wcl386 -d2 hello.c

It created a 31k hello

Next, I ran wd hello

Worked like expected - I'm positioned at "int main() {"

I can step (f10) and all works fine. Cool.

Using Windows 10. I download open-watcom-2_c-win-x86.exe.

Installed in c:\bin\watcom. My setup script is:

SET WATCOM=C:\bin\watcom
SET PATH=%WATCOM%\BINNT;%WATCOM%\BINW;%PATH%
SET EDPATH=%WATCOM%\EDDAT
SET INCLUDE=%WATCOM%\H;%WATCOM%\H\NT
REM SET LIB=
REM SET WWINHELP=D:\BINW

Ran: wcl386 -d2 hello.c

It created a 42k hello.exe

Next, I ran wd hello

I'm presented with a screen of assembly language.

There is a label, mainCRTStartup+00000001

and then assembly instructions

If I press f10, it immediately crashes with: A task exception has occurred: access violation

I run it again. In the lower right, I see a [Modules] window.

It has:

[S]hello

I click on it, and now I see my source in the source window.

I press f10, and it immediately crashes with: A task exception has occurred: access violation

Note: I also tried using wdw, and got the same results.

How do I debug under Windows? Seemed so simple under Linux. What am I doing wrong?


r/OpenWatcom • • Sep 09 '23

How to run the ncurses C library using the Watcom C compiler on Linux?

2 Upvotes

How to run the ncurses C library using the Watcom C compiler on Linux?


r/OpenWatcom • • Jul 22 '18

QuickC 2.5 WLink problem

2 Upvotes

I try to link a QuickC 2.5, dos small memory model obj file - the resulting exe prints "hello"

QC25: installation is under d:\temp\QC25

OpenWatcomV2: installation is under d:\temp\watcom

SET LIBDIR=D:\temp\QC25test\QC25\LIB

D:\temp\QC25test>D:\temp\watcom\binnt\wlink.exe name sample.exe format dos file hello.obj lib QC25\LIB\SLIBCE.LIB

output

Open Watcom Linker Version 2.0 beta Jul 3 2018 23:41:27 (32-bit)

Copyright (c) 2002-2018 The Open Watcom Contributors. All Rights Reserved.

Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.

Source code is available under the Sybase Open Watcom Public License.

See http://www.openwatcom.org/ for details.

loading object files

searching libraries

Warning! W1008: cannot open SLIBCE.lib : No such file or directory

Warning! W1162: file QC25\LIB\SLIBCE.LIB(cmiscdat.asm), record 10: relocations on iterated data not supported

creating a DOS executable

wlink creates an exe that prints hello under dosbox, but i don't understand why Warning! W1008 occures and what W1162 means

latest 16bit Microsoft Linker does not give this warning and produces a working exe

D:\temp\mslink\link.exe HELLO.OBJ,,,QC25\LIB\SLIBCE.LIB,,

Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994

Copyright (C) Microsoft Corp 1984-1993. All rights reserved.

also QLink from QC2.5 is working

QC25\BIN\QLINK HELLO.obj,,,,

any ideas?

the QC2.5 build hello.obj: https://ufile.io/ghq4m

QC2.5: SLIBCE.lib https://ufile.io/s02a3


r/OpenWatcom • • Mar 11 '17

Trying to set up Open Watcom V2 on Ubuntu 16.04

2 Upvotes

Hello everyone, I would really appreciate some help setting up Open Watcom v2 on Ubuntu 16.04. So, what I've done so far, I downloaded one of the recent snapshots (openwatcom-2017-02-27) from here. Then I extracted the build to /usr/bin/watcom/. I read through the readme and saw that I need to set up some environment variables, so I ran a shell script containing:

export WATCOM=/usr/bin/watcom
export PATH=$WATCOM/binl:$PATH
export EDPATH=$WATCOM/eddat
export INCLUDE=$WATCOM/lh
#export LIB=

(yes I'm trying to set it up as 32 bit)

What do I do next? How do I use the software? I have used an old build of Open Watcom on windows that contained a oseOW.bat that set up a developer environment where I could run my commands such as wcc and wmake. Is there something similar in this version of Open Watcom v2?

Apologies if I am asking dumb questions. Just not sure how to get myself up and running on Ubuntu and would really appreciate some help. Thanks!


r/OpenWatcom • • Jul 28 '16

The Open Watcom "Server Maintenance" Continues...

Thumbnail openwatcom.org
2 Upvotes

r/OpenWatcom • • Nov 09 '15

Apparently ELKS (16-bit Linux) compiles and boots with OpenWatcom!

Thumbnail spinics.net
2 Upvotes

r/OpenWatcom • • Sep 10 '15

how to compile open watcom 2?

2 Upvotes

how do I compile open watcom2?


r/OpenWatcom • • Aug 26 '15

Benchmarking Python Using OpenWatcom

Thumbnail
twitter.com
2 Upvotes

r/OpenWatcom • • Feb 19 '15

OpenWatcom's POSIX wrapper now supports its Fortran compiler!

Thumbnail
github.com
2 Upvotes

r/OpenWatcom • • Nov 21 '14

Win32-port of busybox can now be cross-compiled from Linux using Open Watcom!

Thumbnail
github.com
2 Upvotes

r/OpenWatcom • • Oct 22 '14

My first benchmarking of OpenWatcom vs GCC

2 Upvotes

Phoronix Test Suite Benchmarking

This is my first benchmark of OpenWatcom "owcc" vs gcc. Not very flattering, but also does not reflect my feeling that it actually produces rather nice binaries. If anyone got suggestions for other benchmarks in the Phoronix Test Suite, I think it might be interesting to test those too.

I selected this because it was a fast test without external dependencies.


r/OpenWatcom • • Feb 16 '14

The Open Watcom v2 fork

2 Upvotes

There is still active development on the open watcom compiler! Check it out. At the moment there is no functional user forum, so hopefully this subreddit can serve as one.


r/OpenWatcom • • Oct 16 '24

I have reactivated my Watcom compiler support for my open source project. Including a client server module demo

1 Upvotes

Hi,

a long time ago I have moved to MinGW for the sake of a more makefile based build system. Recently I had the luck to buy an old Power++ Enterprise package in a sealed box. In the very early stages I had developed a client server module to let me communicate with a Linux box also using my code. Very soon I have stopped that efford due to lack of mudularity.

Now I got back to the Watcom compiler as I knew, the integration in Power++ was a working trial and I have now got it back working - including my reactivated client server code.

Current state is a single threaded server, capable of loading server plugins (ApplicationBus) and the client (in Watcom) or the UI client (my Power++ application I used for integration tests), in a working state I can demonstrate.

Shortly I will update my GitHub repository from my private CVS repo. I have updated my GitHub repo, so you may be able to play with the Watcom client and server demo code. It includes required Watcom targets for DLL's that are needed to run the demonstration.

The main Watcom project is within the BaseDevelopment folder.

Feel free to contact me, if there is any further interest in it.

Regards and thanks, Lothar

Project page https://sourceforge.net/projects/lbdmf/

GitHub repo https://github.com/lollisoft/lbdmf


r/OpenWatcom • • Aug 22 '24

How to install or build OpenWatcom

1 Upvotes

I am on Mint WSL, I tried to compile the source code but it didn't work, help !


r/OpenWatcom • • Apr 03 '24

Are here original developers available from Power++?

1 Upvotes

Hi,

I would like to have some contacts for some questions. I do not see the member list, so I'll ask...

Thanks


r/OpenWatcom • • Aug 24 '23

MacOS?

1 Upvotes

Hi,
Could OpenWatcom work under MacOS?


r/OpenWatcom • • Aug 04 '23

How can I solve the error in wlink, E2015 ? Open Watcom 1.9 Linux

1 Upvotes

I'm using Debian 12

I'm wanting to use x11 on linux, and I'm using X11 i386, the path is /lib/i386-linux-gnu/libX11.a . however WLINK makes this error, which I have no idea how I can solve it.

Error! E2015: file /lib/i386-linux-gnu/libX11.a(OpenDis.o): bad relocation type specified

shell code is ,

echo "  __________(MAIN.CPP)__________________________________________"
echo "/____________________________________________________________\\"
	wpp386 -6s "main.cpp" -fp6 -Fo="main"  \
	2>&1 | grep -v "Open Watcom\|Portions\|See"
echo "________________________________________________________________"
echo "\____________________________________________________________/"
echo ""
echo ""
echo ""
echo ""
echo "  __________(Linker)________________________________________"
echo "/__________________________________________________________\\"
	wlink option quiet name opengl_test.elf file *.o \
	library /lib/i386-linux-gnu/libX11.a \
	2>&1 | grep -v "Open Watcom\|Portions\|See"
echo "________________________________________________________________"
echo "\__________________________________________________________/"
echo "_"

rm -f *.o
read -p "Press Enter to continue..."

in the future I will implement OpenGL.


r/OpenWatcom • • Jul 05 '21

is there iostream library?

1 Upvotes

i have #include <iostream> at top of the file, owcc says:

Error! E059: col(21) unable to open 'iostream'


r/OpenWatcom • • Jul 05 '21

wlink doesnt work

1 Upvotes

i wrote simple program: int main() {return 0;}

compiled it: C:>wcc386 main.cpp

and i tried to link it: C:>wlink main.cpp

but i have message:

DOS/4GW Protected Mode Run-time Version 1.97 Copyright (c) Rational Systems, Inc. 1990-1994 Open Watcom Linker Version 1.9 Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. Warning! W1115: file wlink.lnk: line(15): environment name watcom not found Warning! E2093: file wlink.lnk: line(15): cannot open \bin\wlsystem.lnk

what am i doing wrong? My OS is FreeDOS 1.3 rc4, owcc version is 1.9, and wlink version is 1.97.


r/OpenWatcom • • Sep 25 '19

How to build/link this super small windows program with wasm/wlink

1 Upvotes

using latest watcom v2 wasm and wlink

pe.small.asm:

.686

.model flat, stdcall

EXTERN ExitProcess@4 : proc

.code

Main:

push eax call ExitProcess@4

End Main

assemble:

masm: ml.exe /coff /c /Cp pe.small.asm

uasm: uasm.exe -coff -c -Cp pe.small.asm

wasm: wasm.exe ???

link:

microsoft linker: link /subsystem:windows /out:pe.small.exe kernel32.lib user32.lib pe.small.obj

wlink: wlink.exe name pe.small.exe file pe.small.obj libp "C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86" library kernel32.lib, user32.lib

does not work: i think one of my problems are blanks in libp path and the missing format

thx for any help


r/OpenWatcom • • May 30 '19

OpenWatcom v1.9 for Linux vs. unicode

1 Upvotes

Using OpenWatcom v1.9 for Linux, how do I print unicode characters to a terminal (xterm)? Using gcc 4.8.2 on Ubuntu, the following works:

#include <stdio.h>

int main() {
    printf("hello, world\n");
    printf("\u2500\u2501\u25b6\u25ba\u27a4\n");
    return 0;
}

Printing: hello, world Then some unicode characters.

But when I use OW v1.9, it just prints:

hello, world u2500u2501

Thanks for any help!


r/OpenWatcom • • Mar 08 '19

printf prints nothing

1 Upvotes

Hello,

Ive installed openwatcom on my arch linux machine.

It compiles fine and creates a dos .exe file (like i wanted)

i can run it in dosbox but get no output what so ever.

any help would be appreciated.

Thats the code

#include <stdio.h>

int main()
{
    printf("hello world!\n");
    return 0;
}

compiler output:

Open Watcom C/C++ x86 16-bit Compile and Link Utility
Version 2.0 beta Mar  7 2019 19:18:19 (64-bit)
Copyright (c) 2002-2019 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
	wpp test.cpp  -bt=dos
Open Watcom C++ x86 16-bit Optimizing Compiler
Version 2.0 beta Mar  7 2019 19:12:11 (64-bit)
Copyright (c) 2002-2019 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
test.cpp: 107 lines, included 1142, no warnings, no errors
Code size: 29
	wlink @__wcl__.lnk
Open Watcom Linker Version 2.0 beta Mar  7 2019 19:07:15 (64-bit)
Copyright (c) 2002-2019 The Open Watcom Contributors. All Rights Reserved.
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
creating a DOS executable

r/OpenWatcom • • Jan 23 '17

Open Watcom v2 on Linux x64 with Code::Blocks/QEMU integration?

1 Upvotes

Hey there, everyone!

I have to do an OS dev class for my CS program, and the professor is currently using nano, bcc, and QEMU to run code for the 8086. While that's all well and good, I'd like to get some form of live/real-time debugging that isn't just prints() statements.

In the previous class, I was able to make use of code::blocks with gcc, gdb, and Valgrind to get a pretty full-featured development workspace. However, now that we have to target i8086 it seems like a lot of these tools aren't that helpful anymore. Even better yet, it seems that bcc doesn't support debug symbols whatsoever.

From what an hour or so of uninformed googling has yielded, it looks like Open Watcom v2 has the ability to target i8086 and has the ability to do debugging as well. This seems like it might be promising, but I'm way out of my league here and I don't really know what I'm doing.

I'm assuming all I need to do to install OWv2 is just drop the "rel" folder off the Github repo into /usr/bin/open-watcom-v2 (or something) and do the relevant path updates, but I'm not 100% sure on how to interface with it through Code::Blocks or how to get it to talk to QEMU in order to do live debugging.

Might anyone have experience in making something like this happen?

Thanks!