delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/11:13:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A93E3C3.E2DF2A52@ece.gatech.edu>
Date: Wed, 21 Feb 2001 10:50:27 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Markus Hoenicka <Markus DOT Hoenicka AT uth DOT tmc DOT edu>
CC: cygwin AT cygwin DOT com
Subject: Re: building DLLs (was:RE: New user help - dont understand Mount (and
the rest))
References: <14995 DOT 193 DOT 753000 DOT 902610 AT gargle DOT gargle DOT HOWL>
<000a01c09b97$bcd7a530$b01661c7 AT holstein-mobile DOT ASPECTDV DOT COM> <14995 DOT 57435 DOT 403000 DOT 883588 AT gargle DOT gargle DOT HOWL>

Markus Hoenicka wrote:

> 
> This is similar to what I tried before, but I still get:
> Cannot export _bss_end__: symbol not defined
> Cannot export _bss_start__: symbol not defined
> Cannot export _data_end__: symbol not defined
> Cannot export _data_start__: symbol not defined
> Creating library file: libosp.dll.a
> collect2: ld returned 1 exit status
> 
> Unfortunately I lack a basic understanding of DLLs. What do these
> messages mean to me? Am I supposed to provide definitions for those
> symbols or am I supposed to remove some definitions that make the
> symbols show up in the exports?

The latter.  _bss_end & friends should not really be exported.

> 
> I'd like to add that the DLL-to-be that I'm fiddling with
> (libosp.dll/OpenSP) builds on Win32/MSVC and Linux etc, so I assume
> that the code is prepared for building a DLL. The __declspec() magic
> is included via #define.

building DLL's from C++ is not as well-studied as C.  Take a look at the
makefile in the <TOP>/ncurses/c++/ directory from the
ncurses-5.2-4-src.tar.gz tarball on any cygwin mirror for a clue.  Or,
for a smaller download, look at 

http://www.neuro.gatech.edu/users/cwilson/cygutils/dllhelpers-0.2.6.tar.gz

which is based on Mumit's original 0.2.5 version.

Unfortunately, I've got a deadline or I'd address this question a little
more thoroughly.  I'll try to get back to it this weekend.

--Chuck

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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