Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 27 Feb 2003 23:15:59 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
cc: xiao chen <chenxiaoellen@hotmail.com>
Subject: Re: use cygwin generated dll in vc program
In-Reply-To: <Pine.GSO.4.44.0302272309220.25599-100000@slinky.cs.nyu.edu>
Message-ID: <Pine.GSO.4.44.0302272312230.25599-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 27 Feb 2003, Igor Pechtchanski wrote:

> On Fri, 28 Feb 2003, xiao chen wrote:
>
> > dear everyone,
> >
> > another question is,
> > how can i apply the dll generated in cygwin to windows?
> > when i link my program to dll and compile in cygwin enviroment, it does
> > work. but when i link the .a file generated to vc++ enviroment and try to
> > compile my program, it fails@running..
> >
> > can someone help me?
>
> Chenxiao,
>
> Take a look at <http://neuro.gatech.edu/~cwilson/cygutils/dll-stuff/index.html>
> Searching this list might also help, IIRC, someone posted DLL-building
> instructions recently...

I should also mention that this will only work with DLLs containing pure C
functions, since g++ and MSVC use different name mangling schemes for C++
functions.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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

