delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/12/15/12:30:39.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: rugxulo AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Creating a C DLL
Date: Sat, 15 Dec 2007 09:16:57 -0800 (PST)
Organization: http://groups.google.com
Lines: 30
Message-ID: <0515caf4-a1b1-47a8-b0b8-2c067b1d6b6c@i3g2000hsf.googlegroups.com>
References: <009301c83d95$c1c87360$0100a8c0 AT MIGUEL> <200712131747 DOT lBDHl9FL029668 AT envy DOT delorie DOT com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1197739017 13615 127.0.0.1 (15 Dec 2007 17:16:57 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sat, 15 Dec 2007 17:16:57 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: i3g2000hsf.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Opera/9.24 (Windows NT 6.0; U; en),gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Dec 13, 11:47 am, DJ Delorie <d DOT  DOT  DOT  AT delorie DOT com> wrote:
> DJGPP does not support DLLs.  Try MinGW or Cygwin.

Well, that's not really true:

http://www.japheth.de/hx/djgpp.html

(quoted):

"2. Using DJGPP for HX
HX's focus is on Win32, it uses the PE file format. This allows to
reuse many Win32 development tools, but there are some limitations.
Being able to use the DJGPP resources and libraries lowers these
limitations. The one issue where DJGPP is not compatible with HX is
that DJGPP doesn't produce true-flat (or "zero-based") binaries. This
issue is something which can be cured by modifying DJGPP's link step.
As a side effect, from DJGPP's point of view, two benefits are
achieved:
No problems to use and write dlls
CWSDPMI is replaced by HX's HDPMI. HDPMI is faster and can use up to 4
GB of physical memory.
The final binary is a HX DOS PE binary. Such binaries run as DOS
applications in any environment, even if launched in a Windows DOS
box."

Other DOS extenders supports .DLLs too (WDOSX, Causeway), usually via
assembly or OpenWatcom. Oh, and don't forget about the DJGPP/ELF fork.
See here for a brief list:

http://www.freebasic.net/forum/viewtopic.php?t=9668

- Raw text -


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