🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Creating a DLL with GCC 2.2.2

#1748
From: Daniel Tietze
Date: Thu, 05 Nov 1992 22:15
28 lines
1922 bytes
Hi!
We are currently trying to persuade GCC 2.2.2 (and LINK386, of course) to
produce a DLL (for experimentation reasons with just one function:
DebugMsg() ).
We set up a DEF-File asking LINK386 to EXPORT the function, but this does
not happen. GCC compiles the stuff OK, but LINK386 says:
     function DebugMsg (alias DebugMSG) : undefined export
(or something to that effect).
Now, my question is:
Given a source module OURDLL.CC and a definition file OURDLL.DEF,
with a routine "void DebugMsg()" in OURDLL.CC, how do we combine this stuff
into a DLL with the tools already mentioned?
AND: How do we import it into, say DLLTEST.CC?
What additional information does the definition file need to include, or
rather, is there a switch for GCC like the /Ge- for C SET/2 (to indicate
creation of a DLL)?
Sorry if this seems basic and unknowledgable, after all, we're just starting,
aren't we?

Any information and hints would be greatly appreciated.
                        Daniel Tietze

+------------------------------------------------------------------+
| Daniel Tietze, 2800 Bremen 1,  Tel.(voice) : 0421/448806         |
|-=============- DATELINE Communications, Bremen.  The home of DMS |
| Mail: (private) lion@dat1hb.north.de (univ) E07J@DHBRRZ41.BITNET |
|-====- DMS-Support: dateline@dat1hb.north.de                      |
+------------------------------------------------------------------+
Technical Details
Message-ID: <Rg1RTB1w165w@dat1hb.north.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ira.uka.de!gmd.de!Germany.EU.net!news.netmbx.de!unlisys!lime.in-berlin.de!nicedel!oytix.north.de!dat1hb!lion

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ira.uka.de!gmd.de!Germany.EU.net!news.netmbx.de!unlisys!lime.in-berlin.de!nicedel!oytix.north.de!dat1hb!lion
From: lion@dat1hb.north.de (Daniel Tietze)
Newsgroups: comp.os.os2.programmer
Subject: Creating a DLL with GCC 2.2.2
Message-ID: <Rg1RTB1w165w@dat1hb.north.de>
Date: Thu, 05 Nov 92 17:15:38 EST
Organization: DATELINE Communications, Bremen
Lines: 28