delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/14/13:07:04

X-Authentication-Warning: gold.cs.umanitoba.ca: umphill5 owned process doing -bs
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 14 Jun 1999 12:06:15 -0500 (CDT)
From: Mark Phillips <umphill5 AT cs DOT umanitoba DOT ca>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: creating DLLs
In-Reply-To: <Pine.SUN.3.91.990613113918.17906Z-100000@is>
Message-ID: <Pine.GSO.3.96.990614120525.10193A-100000@gold.cs.umanitoba.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990613113918 DOT 17906Z-100000 AT is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

thanks for the reply.

> > called Green-Card.  I really must stress the fact that I don't really
> > know what I'm doing, but I'm told I need to create a dll.
>
> Do you HAVE to use a DLL, is this just a nice-to-have feature?  In
> other words, will the program work when linked statically?
>

No.  It looks like the only way I can do this is with a DLL.

> If you MUST use a DLL, you might consider using one of the
> DJGPP-compatible packages  that allow libraries to be dynamically
loaded at run time.  See section 22.3 of the FAQ for some pointers.
>

I saw two packages, but one link seemed to be broken, and the other went
to the right page, but the files didn't seem to be up there.  Is mingw32
djgpp compatible?  Do I need to download cygwin to use it?  I just noticed
that the green-card docs explicitly mention mingw32:

"using the mingw32 backend of gcc that's supplied by the Cygwin toolchain
distribution:

     gcc -mno-cygwin -o GCTest.o GCTest.c -I/hugs/src
   dllwrap -mno-cygwin --target=i386-mingw32 --export-all \
       --def HugsExt.def GCTest.o -o GCTest.dll"

Do you think it would be possible to compile a dll written in djgpp this
way?  Thanks again,

Mark Phillips

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019