delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/23/21:10:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Shankar Unni <shankar AT cotagesoft DOT com>
Newsgroups: gmane.os.cygwin
Subject: Re: Expectations for Windows Programmers
Date: Fri, 23 Aug 2002 18:08:15 -0700
Lines: 24
Message-ID: <3D66DC7F.9090306@cotagesoft.com>
References: <FOEILNFHGFOEGELMNHDMIEPJCDAA DOT horizonx AT noos DOT fr>
NNTP-Posting-Host: adsl-63-193-31-178.dsl.snfc21.pacbell.net
Mime-Version: 1.0
X-Trace: main.gmane.org 1030151337 1513 63.193.31.178 (24 Aug 2002 01:08:57 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Sat, 24 Aug 2002 01:08:57 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1
X-Accept-Language: en-us, en

horizonx AT noos DOT fr wrote:
> I am not a C programmer, but it sounds like I should be able to use gcc and
> dlltool to build a Wintel DLL.
> 
> It is unclear from reading the Cygwin User's Guide if I will actually be
> able to link this DLL with other programming languages outside the Cygwin
> environment.

It is theoretically possible, though you will have to thoroughly 
understand the toolchain and DLL mechanisms.

You can build a cygwin-independent object file by compiling with 
-mno-cygwin. You may need the "mingw" package to get windows headers for 
  this.

Once you do this, you should be able to build a regular windows DLL, and 
even generate .LIB export stubs for this DLL. However, I must confess 
that I don't have references and man pages handy. Much of this 
"knowledge" comes from when I ported the toolchain to an experimental 
platform that is now defunct.

--
Shankar.




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019