home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6242 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.8 KB

  1. Path: 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
  2. From: lion@dat1hb.north.de (Daniel Tietze)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Creating a DLL with GCC 2.2.2
  5. Message-ID: <Rg1RTB1w165w@dat1hb.north.de>
  6. Date: Thu, 05 Nov 92 17:15:38 EST
  7. Organization: DATELINE Communications, Bremen
  8. Lines: 28
  9.  
  10. Hi!
  11. We are currently trying to persuade GCC 2.2.2 (and LINK386, of course) to
  12. produce a DLL (for experimentation reasons with just one function:
  13. DebugMsg() ).
  14. We set up a DEF-File asking LINK386 to EXPORT the function, but this does
  15. not happen. GCC compiles the stuff OK, but LINK386 says:
  16.      function DebugMsg (alias DebugMSG) : undefined export
  17. (or something to that effect).
  18. Now, my question is:
  19. Given a source module OURDLL.CC and a definition file OURDLL.DEF,
  20. with a routine "void DebugMsg()" in OURDLL.CC, how do we combine this stuff
  21. into a DLL with the tools already mentioned?
  22. AND: How do we import it into, say DLLTEST.CC?
  23. What additional information does the definition file need to include, or
  24. rather, is there a switch for GCC like the /Ge- for C SET/2 (to indicate
  25. creation of a DLL)?
  26. Sorry if this seems basic and unknowledgable, after all, we're just starting,
  27. aren't we?
  28.  
  29. Any information and hints would be greatly appreciated.
  30.                         Daniel Tietze
  31.  
  32. +------------------------------------------------------------------+
  33. | Daniel Tietze, 2800 Bremen 1,  Tel.(voice) : 0421/448806         |
  34. |-=============- DATELINE Communications, Bremen.  The home of DMS |
  35. | Mail: (private) lion@dat1hb.north.de (univ) E07J@DHBRRZ41.BITNET |
  36. |-====- DMS-Support: dateline@dat1hb.north.de                      |
  37. +------------------------------------------------------------------+
  38.