🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #423

Help! Can't link in OS/2!?!?!

#423
From: Glenn Wasserman
Date: Wed, 14 Oct 1992 18:37
19 lines
1323 bytes
I'm experimenting with Presentation Manager programming, and I'm
compiling a few simple programs with GCC 2.1. What I need to do is
define a window procdure for export (so my .DEF file has the line
EXPORTS WinProc). The textbook I have says that I need to compile
with the -G2sw and -C options. Firstly, this is for the Microsoft C
5.1 compiler, and secondly, the -G2 means that the code is optimized
for a 286 (and I have OS/2 2.0, which won't run on a 286!). Really,
the only important option that I see here is the w option, that
says I can export functions to be called externally - right?

So how do I do this with gcc? As long as I don't try to export a 
function, I can compile my programs happily with the line
 [c:\gnu\src] gcc -c FILENAME.C
and use the bundled LINK386.EXE that comes with OS/2 (this is what
the readme says to do).

Anyone have any ideas?

-Glenn
Technical Details
Message-ID: <Oct.14.14.37.30.1992.16244@remus.rutgers.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!igor.rutgers.edu!remus.rutgers.edu!glenw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!igor.rutgers.edu!remus.rutgers.edu!glenw
From: glenw@remus.rutgers.edu (Glenn Wasserman)
Newsgroups: gnu.g++.help
Subject: Help! Can't link in OS/2!?!?!
Message-ID: <Oct.14.14.37.30.1992.16244@remus.rutgers.edu>
Date: 14 Oct 92 18:37:35 GMT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 19