This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inclusion of windows dll into cygwin code


Hi All,

Let me explain the problem.

I have a compiled a dll into windows environment using VC++ compiler. I have written my main function in c which should use this dll. I would like to compile the code using gcc. 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.


Regards,
Niraj Agarwal
----- Original Message ----- 
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: "Niraj Agarwal" <niraja@npi.stpn.soft.net>; "cygwin" <cygwin@cygwin.com>
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@rfk.com
> RFK Partners, Inc.                      http://www.rfk.com
> 838 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - 
--- Begin Message ---
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



Attachment: TestDll.cpp
Description: Binary data

Attachment: TestDll.h
Description: Binary data

Attachment: TestDll.def
Description: Binary data

Attachment: TestMain.c
Description: Binary data

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]