Article View: comp.os.os2.programmer
Article #216Re: Linking Red Book Example with gcc 2.1
From: Jay Joiner
Date: Mon, 03 Aug 1992 19:41
Date: Mon, 03 Aug 1992 19:41
18 lines
1272 bytes
1272 bytes
In <199208030031.AA10315@tuna.wang.com> 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 ?).
I wrote a replacement for _ltoa using sprintf() with gcc2.1 in
another application, but it should work in this case, too.
Assume the _ltoa call is _ltoa(a, b, c), change it to,
sprintf(b, "%l", a) and make sure b is long enough to hold
the result.
Jay Joiner
Technical Details
Message-ID:
<1992Aug3.194142.22562@cs.umn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!news.cs.indiana.edu!umn.edu!cs.umn.edu!joinerReferences:
<199208030031.AA10315@tuna.wang.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!news.cs.indiana.edu!umn.edu!cs.umn.edu!joiner From: joiner@cs.umn.edu (Jay Joiner) Newsgroups: comp.os.os2.programmer Subject: Re: Linking Red Book Example with gcc 2.1 Message-ID: <1992Aug3.194142.22562@cs.umn.edu> Date: 3 Aug 92 19:41:42 GMT References: <199208030031.AA10315@tuna.wang.com> Organization: University of Minnesota, Minneapolis, CSci dept. Lines: 18