| www.delorie.com/archives/browse.cgi | search |
| 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 |
| Message-ID: | <3D0A3883.8040809@scytek.de> |
| Date: | Fri, 14 Jun 2002 20:40:03 +0200 |
| From: | Volker Quetschke <quetschke AT scytek DOT de> |
| User-Agent: | Mozilla/5.0 (Windows; U; Win98; de-DE; rv:0.9.4) Gecko/20011019 Netscape6/6.2 |
| X-Accept-Language: | de-DE |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Building dlls with cygwin |
| References: | <20020613114140.LHPL4626.mta02-svc.ntlworld.com@[10.137.100.62]> |
Hi Steven,
> help netmsg 127
> gives:
> The specified procedure could not be found.
>
> This means that your dll was loaded correctly, but did not contain the symbol passed to dlsym().
> I have built many (dozens) of dll modules for gnome on cygwin, and no special commands or linker
> switches were necessary; no import library is needed either. Are you sure that your dll actually
> exports the required symbol (try using nm --defined-only DLL | grep SYMBOL)
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
Thanks
Volker
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |