Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <4.3.1.2.20020828104913.022b8c98@pop.rcn.com> X-Sender: lhall AT pop DOT rcn DOT com Date: Wed, 28 Aug 2002 10:56:15 -0400 To: "Niraj Agarwal" , "cygwin" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Inclusion of windows dll into cygwin code In-Reply-To: <002501c24ea2$79a52610$46ca09c0@aniraj> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:52 AM 8/28/2002, Niraj Agarwal wrote: >Hi All, > >Let me explain the problem. > >I have a compiled a dll into windows environment using VC++ compiler. OK, that's clear. >I have written my main function in c which should use this dll. So you mean you've created a main.c with main() and main() will call into the windows DLL via some function exported from the DLL. Is that right? >I would like to compile the code using gcc. I'm assuming main.c linking against the .LIB created by VC++ for your DLL, right? >I have tried to use the export dll concept explained in cygwin user guide but that is not working for my case and generating ld error. OK, but we don't know what main.c looks like, what function in the windows DLL you're calling, how it was exported (as a C or C++ function), how you compiled and linked all this, and what the error was. >Regards, >Niraj Agarwal >----- Original Message ----- >From: "Larry Hall (RFK Partners, Inc)" >To: "Niraj Agarwal" ; "cygwin" >Sent: Wednesday, August 28, 2002 8:07 PM >Subject: Re: Inclusion of windows dll into cygwin code > > > > At 10:36 AM 8/28/2002, Niraj Agarwal wrote: > > >Hi All, > > > > > >Can any body help me in including windows dll into the code compiled in cygwin environment? > > > > > > I expect the answer is yes but you'll need to post the details of your > > situation and the specific problem before anyone here can take a stab at > > it. > > > > Sorry if this sounds obvious but sometimes a statement of the obvious is > > necessary to get things started. > > > > > > Larry Hall lhall AT rfk DOT com > > RFK Partners, Inc. http://www.rfk.com > > 838 Washington Street (508) 893-9779 - RFK Office > > Holliston, MA 01746 (508) 893-9889 - Return-Path: >Received: (from root AT localhost) > by comet.npi.stpn.soft.net (8.9.3/8.9.3) id NAA32310 > for niraja AT npi DOT stpn DOT soft DOT net; Tue, 27 Aug 2002 13:51:08 +0530 >Received: from sources.redhat.com (sources.redhat.com [209.249.29.67]) > by comet.npi.stpn.soft.net (8.9.3/8.9.3) with SMTP id NAA31882 > for ; Tue, 27 Aug 2002 13:47:43 +0530 >Received: (qmail 14774 invoked by alias); 27 Aug 2002 08:24:11 -0000 >Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm >Precedence: bulk >List-Unsubscribe: >List-Subscribe: >List-Archive: >List-Post: >List-Help: , >Sender: cygwin-owner AT cygwin DOT com >Mail-Followup-To: cygwin AT cygwin DOT com >Delivered-To: mailing list cygwin AT cygwin DOT com >Received: (qmail 14764 invoked from network); 27 Aug 2002 08:24:08 -0000 >Received: from unknown (HELO comet.npi.stpn.soft.net) (203.190.139.231) > by sources.redhat.com with SMTP; 27 Aug 2002 08:24:08 -0000 >Received: (from root AT localhost) > by comet.npi.stpn.soft.net (8.9.3/8.9.3) id NAA31738 > for cygwin AT cygwin DOT com; Tue, 27 Aug 2002 13:46:44 +0530 >Received: from aniraj ([192.9.202.70]) > by comet.npi.stpn.soft.net (8.9.3/8.9.3) with SMTP id NAA31727 > for ; Tue, 27 Aug 2002 13:46:43 +0530 >Message-ID: <001a01c24da3$35aec790$46ca09c0 AT aniraj> >Reply-To: "Niraj Agarwal" >From: "Niraj Agarwal" >To: "cygwin" >Subject: DLL Linking Problem >Date: Tue, 27 Aug 2002 13:54:48 +0530 >MIME-Version: 1.0 >Content-Type: multipart/mixed; > boundary="----=_NextPart_000_0018_01C24DD1.4F09EF70" >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 >X-Virus-Scanned: by AMaViS perl-11 >Status: > >Hi All, > >I have written a simple dll using VC++ compiler and now i am trying to link the same to my code running in cygwin environment. > >I have created a definition file and using dlltool i have generated .a file. >I was able to compile and link program successfully but i am facing one problem when i am trying to run the program. it is saying that entry point for the funtion is not defined in the dll. > >Note :The dll file, def file and sample program using dll is also attached. > >Please help me in this regard. > >Thanks and best regards, >Niraj Agarwal >Senior Member Technical Staff >Network Programs(I) Ltd. >Noida > > > > > > >-- >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/ >-- >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/ -- 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/