Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <37E0F4AE.D09C2A76@stest.ch>
Date: Thu, 16 Sep 1999 15:46:22 +0200
From: Thomas Kowatsch <Thomas.Kowatsch@stest.ch>
Organization: Switching Test Solutions AG
X-Mailer: Mozilla 4.04 [en] (X11; U; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: Cygwin List <cygwin@sourceware.cygnus.com>
Subject: Re: automatic relocation problem? (WAS: problem with 3rd party lib)
References: <199909161221.HAA06533@mercury.xraylith.wisc.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mumit Khan wrote:

> Thomas Kowatsch <Thomas.Kowatsch@stest.ch> writes:
> >
> > I think my 3rd party library is using the MSVCRT runtime. Is thereany
> > way I can use this 3rd party lib then and cygwin?
> >
>
> There are times when it will work, and there are times when it won't.
> It's not a simple issue, believe me.
>
> > Is this a general problem that MSVC libraries are not usable? So
> > the 3rd party vendor has to support a cygwin version?
>
> That would be nice of course.
>
> Before you do anything further, please fix your DLL making process and
> *remove* the erroneous entry point. Never override the entry point for
> any DLL unless you really know what you're doing (and if you do, ignore
> the rest of the paragraph). The way to handle this is to simply supply
> your own DllMain that will be called automatically by the default entry
> point. In your case, just don't use the library supplied one (ie., don't
> provide one and the linker will pick up the one in the library) since
> you don't do anything special.

I'm not sure what exactly you mean. Is it the --entry in followingcommand?

  dllwrap --export-all --output-def libxx.def --entry DllEntryPoint@12
--implib libxx.a -o libxx.dll

>
>
> Doing the above of course doesn't mean that this particular case is going
> to work of course!
>
> Regards,
> Mumit

--
------------------------------------------------------------------------
Thomas Kowatsch                      | - Senior Software Engineer -
Switching Test Solutions AG          | mailto: thomas.kowatsch@stest.ch
Wavetek Wandel & Goltermann Divison5 | web   : http://www.stest.com
Friesenbergstr. 75                   | Phone : +41 1 454-6731
CH-8055 Zuerich                      | FAX   : +41 1 454-6612




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

