delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/14/15:29:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 14 Jun 2002 20:28:45 +0100
From: "Steven O'Brien" <steven DOT obrien2 AT ntlworld DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Building dlls with cygwin
Message-Id: <20020614202845.08733f55.steven.obrien2@ntlworld.com>
Mime-Version: 1.0

Volker,
you should grep for the actual symbol that you are hoping to find in the
dll, not "SYMBOL"

When nm says "no symbols" it means that the dll has been stripped.

Your linker command for making the dll is correct, so I am sure that the
c source is the problem. Is the function you are trying to load marked
as "extern" ?

Steven

Original Message:
I used nm, see below. Obviously you are right, no exported symbols. I
guess that
nm doesn't see the symbols of a MSVC++ 6.0 compiler. At least that dll
works.

How do I define which symbols are exported?

(This is probably a beginners faq, but hey, it's my first dll ;-) )

[Administrator AT lisi]/lib/gnupg:{505}:
$ nm --defined-only idea.cyg.dll |grep SYMBOL
(nothing)
[Administrator AT lisi]/lib/gnupg:{506}:
$ nm --defined-only idea.msvc.dll |grep SYMBOL
nm: idea.msvc.dll: no symbols


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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