delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/09/05:36:32

From: jont AT harlequin DOT co DOT uk (Jon Thackray)
Subject: How to build an DLL ?
9 Oct 1997 05:36:32 -0700 :
Message-ID: <199710081026.LAA02419.cygnus.gnu-win32@zaphod.long.harlequin.co.uk>
References: <343A4EAB DOT F80 AT oceanes DOT fr>
To: gnu-win32 AT cygnus DOT com

flam AT oceanes DOT fr writes:
 > Hi everybody,
 > 
 > 
 > I have created several functions in a file MY_LIBRARY.C
 > 
 > I would like to create MY_LIBRARY.DLL. How can i do ?
 > Apparently i would have first to create a .DEF :
 >         echo EXPORTS > MY_LIBRAIRIE.DEF
 > Then	nm <Something>

nm <your object files> | grep <etc> (see the website)

 > Then	ld --base-file <How can i create a .base ?>

ld creates .base files.

 > Then	dlltool <<Something>)
 > I tried different maners and it does'nt work...

It does work, very well in fact.

I suggest you visit the cygnus webiste at
http://www.cygnus.com/misc/gnu-win32/ and read the article on building
relocatable dlls.

 > What is the difference between relocatable DLL and non-relocatable DLL ?

A relocatable dll is one that can be relocated by the loader during
program startup. Relocation is required if two dlls try to live in the
same place in memory. If you have two such dlls and the second one
loaded can't be relocated, your program will get an initialisation
error.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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