This is the mail archive of the
mailing list for the Cygwin project.
Re: Building dlls with cygwin
- From: Steven O'Brien <steven dot obrien2 at ntlworld dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Jun 2002 20:28:45 +0100
- Subject: Re: Building dlls with cygwin
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" ?
I used nm, see below. Obviously you are right, no exported symbols. I
nm doesn't see the symbols of a MSVC++ 6.0 compiler. At least that dll
How do I define which symbols are exported?
(This is probably a beginners faq, but hey, it's my first dll ;-) )
$ nm --defined-only idea.cyg.dll |grep SYMBOL
$ 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