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
Message-ID: <3CECCA15.7080509@mip.sdu.dk>
Date: Thu, 23 May 2002 12:53:09 +0200
From: =?ISO-8859-1?Q?Ren=E9_M=F8ller_Fonseca?= <fonseca@mip.sdu.dk>
Reply-To: cygwin@cygwin.com
Organization: The Maersk Institute, University of Southern Denmark
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: linking cygwin built dll with Borland C++Builder
References: <FC169E059D1A0442A04C40F86D9BA7600C6148@itdomain003.itdomain.net.au> <3CECC852.9060605@uni.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by AMaViS perl-11

Tell the compilers to pack the struct's (if different alignment is the 
problem).

For GCC use: __attribute__((packed))
For Borland compiler use (I think): #pragma pack

René

Dennis Jarosch wrote:
> Hi Rob!
> 
> Robert Collins wrote:
> 
>> Mixing C++ between compilers generally doesn't work. See the c++-faq
>> lite for more details.
>>
>> Rob
> 
> 
> Maybe I just misunderstood you, but the lib/dll consists of pure C-code, 
> no C++ involved. Of course my Wrapper uses C++ code, but I am not 
> linking any C++ code from gcc!
> 
> Dennis
> 
> 
> 
> -- 
> 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/
> 



-- 
B.Sc. in Computer Systems Engineering
The Maersk Mc-Kinney Moller Institute for Production Technology
University of Southern Denmark
http://www.mip.sdu.dk/~fonseca


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

