Message-ID: <368E40A9.12D83DCA@montana.com> Date: Sat, 02 Jan 1999 08:52:09 -0700 From: bowman 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.