This is the mail archive of the
mailing list for the Cygwin project.
Re: dlopen(0, RTLD_LAZY) doesn't work?
- From: PsychoSphere <psychosphere2k at yahoo dot com>
- To: Robert Collins <robert dot collins at itdomain dot com dot au>, Pavel Tsekov <ptsekov at syntrex dot com>
- Cc: cygwin at cygwin dot com, kent at watsen dot net
- Date: Fri, 8 Feb 2002 03:58:05 -0800 (PST)
- Subject: Re: dlopen(0, RTLD_LAZY) doesn't work?
--- Robert Collins <firstname.lastname@example.org>
> ----- Original Message -----
> From: "Pavel Tsekov" <email@example.com>
> > > I believe the __declspec(...) has a similar
> effect, in
> > > that it is ignored unless -shared is specified,
> > > -mdll is used.
> > Ok, I didn't know that, but hey ... you learn
> almost every day
> > something new :)
> Don't learn this one - it's incorrect. Linking with
> cygwin1.dll would
> fail if it were correct.
Wrong... declspec is ignored, as you will see if you
nm the exe produced.
> > > Also, the dllimport directive is never used
> unless an
> > > import library is created and used, which is not
> > > idea here.
> Again, this is incorrect. The dllimport directive
> can be used when
> linking directly to a .dll, no importlibrary
An import library is automatically produced as you
would see if you analyzed the sources!
If you could demonstrate your point using examples, I
would be convinced. I have linked the cygwin1.dll
without the declspec directives... furthermore, the
dll after having symbols striped cannot be used as a
substitute for an import library.
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html