public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Dynamic library support
@ 2001-11-15 13:35 James A. Smith
  2001-11-24  3:08 ` James A. Smith
  0 siblings, 1 reply; 2+ messages in thread
From: James A. Smith @ 2001-11-15 13:35 UTC (permalink / raw)
  To: cygwin

Hello,

I'm using the mircosoft functions: (LoadLibrary, GetProcAddress), to allow
me to have a modular "plugin" based system. Having not done much relocatable
code before, I'm not too sure how I go about linking my shared lib (dll)
under gcc.

I've read the FAQ's on the cygwin site, (before you moan at me to do so),
but I need to know how to export the libs used inside my main program, so
that plugins can use them also. I assume it will have something to do with
creating an export file from the .exe and linking it with the plugin? Or
possibly telling the linker to ignore unresolved externals, which would be
resolved by the dynamic linker at runtime? I dont know...

Could someone please enlighten me ;)
Thanks.

J.


--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Dynamic library support
  2001-11-15 13:35 Dynamic library support James A. Smith
@ 2001-11-24  3:08 ` James A. Smith
  0 siblings, 0 replies; 2+ messages in thread
From: James A. Smith @ 2001-11-24  3:08 UTC (permalink / raw)
  To: cygwin

Hello,

I'm using the mircosoft functions: (LoadLibrary, GetProcAddress), to allow
me to have a modular "plugin" based system. Having not done much relocatable
code before, I'm not too sure how I go about linking my shared lib (dll)
under gcc.

I've read the FAQ's on the cygwin site, (before you moan at me to do so),
but I need to know how to export the libs used inside my main program, so
that plugins can use them also. I assume it will have something to do with
creating an export file from the .exe and linking it with the plugin? Or
possibly telling the linker to ignore unresolved externals, which would be
resolved by the dynamic linker at runtime? I dont know...

Could someone please enlighten me ;)
Thanks.

J.


--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-24 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 13:35 Dynamic library support James A. Smith
2001-11-24  3:08 ` James A. Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).