🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1619

Re: Can OS/2 executables be built under DOS?

#1619
From: Peter Knight
Date: Mon, 05 Nov 1990 09:25
32 lines
1724 bytes
jrbd@craycos.com (James Davies) writes:

>Is it possible to compile and link an OS/2 executable under DOS 3.3?
>I have Microsoft C V5.1.  The distribution includes OS/2 libraries,
>and implies that the same linker is used for both systems.  I thought
>that I would be able to just link with the OS/2 libs and startup code,
>then do a BIND on the result to produce a .EXE file that would work
>both on DOS and OS/2, but it doesn't seem to be working out that way.
>(The manuals haven't been real helpful - the OS/2 stuff was apparently
>added as an afterthought.)

>Am I trying something impossible here?  Thanks in advance for any advice...

>						Jim Davies
>						jrbd@craycos.com

Yes, it is.  All you have to do is to include the right run-time library.

Eg SLIBCEP instead of SLIBCER.  To do this, you need to have built the 
library from the distribution disks, and to set the linker flags to get 
the 'right' library. I cannot tell you how to do this, as which library
is the default (SLIBCE) is set when you built the libraries.

Yes, I agree the OS/2 stuff is an after-thought/kludge/panic-measure/
typical-MS-c*ck-up.

Peter Knight
BT Reasearch

#include <std.disclaimer>

Views expressed here are my own, and are not endorsed by my employer.
Technical Details
Message-ID: <prk.657797107@pegasus>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!axion!planet!prk
References: <1990Nov2.152618.3790@craycos.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!axion!planet!prk
From: prk@planet.bt.co.uk (Peter Knight)
Newsgroups: comp.os.os2.programmer
Subject: Re: Can OS/2 executables be built under DOS?
Message-ID: <prk.657797107@pegasus>
Date: 5 Nov 90 09:25:07 GMT
References: <1990Nov2.152618.3790@craycos.com>
Sender: usenet@planet.bt.co.uk (Usenet News Manager)
Organization: RT743, BT Research Labs, Martlesham Heath, Ipswich, UK.
Lines: 32