🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

re: Linking Red Book Example with gcc 2.1

#215
From: Pete Bergstrom
Date: Mon, 03 Aug 1992 15:40
21 lines
1540 bytes
ALAN.MCADOO@OFFICE.WANG.COM ("Alan McAdoo") writes:

>I am trying to compile and link the examples from Red Book 1, namely
>the programm (SWAPSIZE), using only gcc 2.1 and OS/2 utilities.
>
>The source swapsize.c compiles, but I cannot get it to link correctly.
>- SWAPSIZE.DEF calls for two unknown libraries : OS2386 & DDE4MBS ?
>- also it calls for "STUB"  "OS2STUB.EXE" : what does this mean ?
>
>If I omit the libraries spec., then I get an unresolved "__ltoa",
>which is a called routine (can this be found somewhere else ?).
>Please help a struggling programmer (without documentation) !.
>Come on IBM, put the on-line manuals on Internet or let us buy them for
>a reasonable price ($300)..

Try replacing os2386.lib with os2.lib (os2386.lib comes with the OS/2
Toolkit).  I'm not sure about the DDE4MBS.  I'll look at the example
sometime soon, since I've had good luck getting gcc to compile and
link programs.

Pete
Technical Details
Message-ID: <9208031540.AA23002@data.src.honeywell.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!uwm.edu!src.honeywell.com!mail-enters-news

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!uwm.edu!src.honeywell.com!mail-enters-news
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: re: Linking Red Book Example with gcc 2.1
In-Reply-To: ALAN.MCADOO@OFFICE.WANG.COM's message of 3 Aug 92 01: 30:03 GMT
To: comp.os.os2.programmer
Message-ID: <9208031540.AA23002@data.src.honeywell.com>
Posted-Date: Mon, 3 Aug 92 10: 40:01 CDT
Sender: daemon@src.honeywell.com
Organization: Honeywell Systems & Research Center
Date: Mon, 3 Aug 1992 15:40:01 GMT
Received-Date: Mon, 3 Aug 92 10: 40:02 CDT
Lines: 21