delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/21/17:16:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <3888DBE7.B1DDB836@disney.com>
Date: Fri, 21 Jan 2000 14:21:27 -0800
From: Mike Goslin <mike DOT goslin AT rd DOT wdi DOT disney DOT com DOT rd DOT disney DOT com>
Reply-To: mike DOT goslin AT rd DOT wdi DOT disney DOT com DOT rd DOT disney DOT com
X-Mailer: Mozilla 4.61C-SGI [en] (X11; U; IRIX64 6.5 IP25)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: building and linking with a dll

--------------48E5F0329D59C2B2BF25E608
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I can't successfully build and link with a .dll.  I've found 2 versions
of the "5-step program" instructions to create a .dll and its' .a using
ld and dlltool, but I still get "undefined reference" errors from ld.
Is there a simple example somewhere I could take a look at?  More
specifically, I'd love more information on:
- the correct link lines (and dlltool lines),
- how to generate a .def file automatically (if this is possible),
- where to put an entry point function for the .dll so that -e <name>@12
will pick it up successfully (is it necessary to have an entry point at
all?),
- and whether __declspec(dllexport) is still necessary to export classes
and global variables (or if the .def file is sufficient).

Thanks,
Mike

--
--------------------------------------------------------------------------------
  Mike Goslin                                       mike DOT goslin AT disney DOT com
  Walt Disney Imagineering - VR Studio              (818)544-3015
  Obligatory disclaimer: Views expressed here are mine and in no way
        represent the Walt Disney Company
--------------------------------------------------------------------------------



--------------48E5F0329D59C2B2BF25E608
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I can't successfully build and link with a .dll.&nbsp; I've found 2 versions
of the "5-step program" instructions to create a .dll and its' .a using
ld and dlltool, but I&nbsp;still get "undefined reference" errors from
ld.&nbsp; Is there a simple example somewhere I&nbsp;could take a look
at?&nbsp; More specifically, I'd love more information on:
<br>- the correct link lines (and dlltool lines),
<br>- how to generate a .def file automatically (if this is possible),
<br>- where to put an entry point function for the .dll so that -e &lt;name>@12
will pick it up successfully (is it necessary to have an entry point at
all?),
<br>- and whether __declspec(dllexport) is still necessary to export classes
and global variables (or if the .def file is sufficient).
<p>Thanks,
<br>Mike
<pre>--&nbsp;
--------------------------------------------------------------------------------
&nbsp; Mike Goslin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mike DOT goslin AT disney DOT com
&nbsp; Walt Disney Imagineering - VR Studio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (818)544-3015
&nbsp; Obligatory disclaimer: Views expressed here are mine and in no way&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; represent the Walt Disney Company
--------------------------------------------------------------------------------</pre>
&nbsp;</html>

--------------48E5F0329D59C2B2BF25E608--

- Raw text -


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