Mail Archives: djgpp/1999/01/02/10:54:12
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 -