From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19278 invoked by alias); 24 Nov 2001 11:08:06 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 19217 invoked from network); 24 Nov 2001 11:07:59 -0000 Received: from unknown (HELO mta07-svc.ntlworld.com) (62.253.162.47) by sourceware.cygnus.com with SMTP; 24 Nov 2001 11:07:59 -0000 Received: from dragon ([62.255.232.149]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.13 201-229-121-113) with SMTP id <20011124110757.DNZP692.mta07-svc.ntlworld.com@dragon> for ; Sat, 24 Nov 2001 11:07:57 +0000 Message-ID: <03fa01c174d9$129a1e60$0a00a8c0@dragon> From: "James A. Smith" To: Subject: Dynamic library support Date: Thu, 15 Nov 2001 13:35:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-SW-Source: 2001-11/txt/msg00932.txt.bz2 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: "James A. Smith" To: Subject: Dynamic library support Date: Sat, 24 Nov 2001 03:08:00 -0000 Message-ID: <03fa01c174d9$129a1e60$0a00a8c0@dragon> X-SW-Source: 2001-11/msg01520.html Message-ID: <20011124030800.4IIrY_O-h5YO1JPZwZhsMlFvMJfFvYokZhDkw76ps3E@z> 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/