Ancestors

Written by FozzTexx on 2025-01-21 at 20:57

Fighting with building Open Watcom on Linux & compiling/linking. wcc compiles simple hello world, but wlink errors:

__STK is an undefined reference

printf_ is an undefined reference

cstart is an undefined reference

small_code is an undefined reference

[#]RetroComputing #VintageComputing

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Written by FozzTexx on 2025-01-21 at 20:58

The instructions for building Open Watcom are pretty sparse. Just say "run build.sh and voila! Everything will just work!" Except that's not the case. #RetroComputing #VintageComputing

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Written by FozzTexx on 2025-01-21 at 20:59

It seems like build.sh never built the libraries:

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

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

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

If I do a find in the open watcom source tree they definitely aren't there.

[#]RetroComputing #VintageComputing

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Written by FozzTexx on 2025-01-22 at 02:20

I don't think Open Watcom actually works, at least not if you compile it yourself. That means the only way to use it is a pre-built binary, only available for DOS/Windows, which is not what I'm interested in. This is just a simple hello_world.c and should easily compile, not spew out errors complaining that libraries are missing and there's no main() function (“small_code is an undefined reference”).

[#]RetroComputing #VintageComputing

=> View attached media

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Written by FozzTexx on 2025-01-22 at 04:01

I think I might have figured it out! There’s a completely undocumented tribal knowledge secret you have to know: the libraries aren't part of Open Watcom. You have to get them from the original MS-DOS Watcom C compiler. 🤦🏻‍♂️

#RetroComputing #VintageComputing

=> View attached media

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Written by europlus :autisminf: on 2025-01-22 at 04:59

@fozztexx make sure you put that in the Discord so people can easily find it in the future! 🤣

=> More informations about this toot | More toots from europlus@europlus.zone

Written by FozzTexx on 2025-01-22 at 16:09

@europlus https://mastodon.fozztexx.com/@fozztexx/113872871863716695

=> More informations about this toot | More toots from fozztexx@fozztexx.com

Toot

Written by europlus :autisminf: on 2025-01-22 at 20:29

@fozztexx 😍

=> More informations about this toot | More toots from europlus@europlus.zone

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113873898463586006
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
363.517691 milliseconds
Gemini-to-HTML Time
1.979534 milliseconds

This content has been proxied by September (3851b).