delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/02/12:47:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: <004101c4d896$fab9ef80$0200a8c0@mindcooler>
From: =?iso-8859-1?Q?Mikael_=C5sberg?= <mikas493 AT student DOT liu DOT se>
To: <cygwin AT cygwin DOT com>
Subject: Re: MSVC-dll under Cygwin
Date: Thu, 2 Dec 2004 18:47:22 +0100
MIME-Version: 1.0

"Fred Kulack" wrote: 
> Perhaps I'm untrusting, but I'm not sure I'd expect you to be able to use
> a standard C++ library object like string from one C++ binary in Cygwin
> to a non-C++ binary.
>
> I.e.
>  cygwin std::string  is probably not the same definition as MSVC
> std::string.
> Why would it be?
>

You are most likely correct. I noticed that the third parameter,
std::string& error_information causes the cygwin test program
to segfault when I call the DLL function. If I compile the DLL
without the third parameter I don't get the segfault. In both cases
all strings are garbled though.

Therefore, I am changing the implementation of my DLL to pure C.

>
>
> "The stuff we call "software" is not like anything that human society
>  is used to thinking about. Software is something like a machine, and
>  something like mathematics, and something like language, and
>  something like thought, and art, and information...
>  but software is not in fact any of those other things."
> Bruce Sterling - The Hacker Crackdown
>
> Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions
> ERP, Java DB2 access, Jdbc, JTA, etc...
> IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
> mailto:kulack/us.ibm.com   Personal: mailto:kulack/gmail.com
> AIM Home:FKulack  AIM Work:FKulackWrk
> MSN Work: fakulack/hotmail.com (replace email / with @)
>

/ Mikael


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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