This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building dlls with cygwin


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@lisi]/lib/gnupg:{505}:
$ nm --defined-only idea.cyg.dll |grep SYMBOL
(nothing)
[Administrator@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]