X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: oNWHjPYVM1nG8WtARQkVSCx1INCkGTB8XxrGqTZVa3co7Q7qbsoBgnjlfzAY58gKwoeXYH0.0lGSOnf0D9abV7Dodvirak9xcuoTwCT2qiPbkyIqYNaaUYrxQyL58vk-
X-Yahoo-Newman-Property: ymail-3
Message-ID: <483D0146.20705@sbcglobal.net>
Date: Wed, 28 May 2008 06:52:54 +0000
From: Greg Chicares <gchicares@sbcglobal.net>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Urgent !!! Reg Linking sybase DLL in cygwin.
References: <182dc94a0805272200h2ab63de6wb2728c8135c97c3c@mail.gmail.com>
In-Reply-To: <182dc94a0805272200h2ab63de6wb2728c8135c97c3c@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2008-05-28 05:00Z, Mani kandan wrote:
>
>   I have created sample.dll in MSVC++  and i am able to link that dll
> in cygwin environment.
>   Even i have tried with some other dlls which is generated in MSVC++,
> i am able to link and that EXE's also
>   working fine.

Perhaps your sample dll does none of the problematic things
Reini mentioned. However, if a C++ vendor dll, built with
msvc, communicates through anything but a very restrictive
subset of C++ (only the vendor can tell you that), then it
can't be linked to code built with g++ to produce a valid
program. It's not just difficult: it's simply not feasible.

Here's another explanation:
  http://www.mingw.org/MinGWiki/index.php/MixingCompilers

> As you suggested the vendor are not support the cygwin
> environment and they didn't agree to give the
>   source code also. The only option is I have to link some other way
> that sybase dll in cygwin.pls help.

Probably your only option is to use msvc.

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

