delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/09:47:11

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
Message-ID: <019c01c2f794$51d96f60$3778883e@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Mader, Alexander" <alexander DOT mader AT niles DOT de>,
"Massimiliano Mirra" <mmirra AT libero DOT it>
Cc: <cygwin AT cygwin DOT com>
References: <87pto76fcf DOT fsf AT prism DOT localnet> <3E8805AA DOT 9060000 AT niles DOT de> <87d6k75zh1 DOT fsf AT prism DOT localnet>
Subject: Re: Building DLLs to be loaded from Visual Basic
Date: Mon, 31 Mar 2003 15:46:20 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Massimiliano Mirra wrote:
> "Mader, Alexander" <alexander DOT mader AT niles DOT de> writes:
>
>>> - is anybody today successfully building DLLs with cygwin (not
>>>   mingw32) and loading them from Visual Basic (or other languages)?
>>
>> I have to provide DLLs for VB and do so by using Cygwin but with
>> -mnocygwin, which is more or less using mingw32.
   ^^^^^^^^^^

-mno-cygwin

> Is that relevant to the DLL creation, i.e. do you know if a DLL built
> without -mnocygwin (thus with cygwin) is still as usable?  I have to
> access the serial hardware on the target and I prefer to do it the
> POSIX way rather than with the native API.
>
>> I have no idea. But I know about some problems regading VB in
>> connection with C _not_ with Cygwin. So, compiling with gcc-2 it is
>> usefull to use -fnative-struct (no more available/nessesary in
                                   ^^^^^^^           ^^^^^^^^^

Incorrect. Still necessary if that is what you want. Now
called -mms-bitfields.

>> gcc). Because of the VB-
>> Structure-Conventions it could be nessesary to use -fpack-struct
>> together with dummy elements in the structure in question.
>
> Good to know, since I built gcc2.  Not even the latter is necessary in
> gcc3.2, right?

Still necessary.

Max.


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