www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/02/10:54:12

Message-ID: <368E40A9.12D83DCA@montana.com>
Date: Sat, 02 Jan 1999 08:52:09 -0700
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: using DLLs
References: <76kulr$hmb$1 AT sweet DOT kiss DOT uni-lj DOT si>
Reply-To: djgpp AT delorie DOT com


Mitja Semolic wrote:
> 
> How to I compile and link to a DLL library? It is possible?
> Example: I want to use opengl.dll or ddraw.dll?

ddraw.dll implies you are targeting Windows, right? And if so, look for
opengl32.dll.

1. if you haven't already, get the rsxntdj package. This will allow you
to build Windows apps.

2. You can either get the DRDX package for the additional headers, or
download the entire MS PlatformSDK and apply the patches from my site.

3. use the rsxntdj tool 'makelib' to build a wrapper for the .dll in
question.

4. compile and link.


Another option is using Cygwin. This will save a few steps, and at the
moment seems to be a little more coherent approach to building windows
apps whith a gnu based compiler. You will still need to acquire the
headers and make any necessary patches. 

Both approaches work. Cygwin shows its GNU roots a little more, so if
you are not comfortable with gnu tools, djgpp assumes you're running
DOS, although you certainly can get and use the bash shell and all the
other ported gnu tools.

- Raw text -


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