🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Glenn Wasserman Wed, 14 Oct 1992 18:37
Help! Can't link in OS/2!?!?!
#423
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads