This is the mail archive of the
mailing list for the Cygwin project.
Re: MSVC-dll under Cygwin
- From: Mikael Åsberg <mikas493 at student dot liu dot se>
- To: <cygwin at cygwin dot com>
- Date: Thu, 2 Dec 2004 18:47:22 +0100
- Subject: Re: MSVC-dll under Cygwin
"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.
cygwin std::string is probably not the same definition as MSVC
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 @)
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html