This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: automatic relocation problem? (WAS: problem with 3rd party lib)




> 
> Earnie Boyd wrote:
> 
> > --- Thomas Kowatsch <Thomas.Kowatsch@stest.ch> wrote:
> > > I tracked the problem a litlle bit more down. It seems to me that
> > -8<-
> > > 779d0000:/c/WINNT/System32/MSVCRT40.dll
> > > 78000000:/c/WINNT/system32/MSVCRT.dll
> > > 780a0000:/c/WINNT/System32/MSVCIRT.dll
> > > warning: LDR: Automatic DLL Relocation in testit3.exe
> > >
> > -8<-
> > > 61000000:/usr/local/cygnus/cygwin-b20/usr/bin/cygwin1.dll
> > -8<-
> >
> > Your problem is that you're using two different runtimes.
> 
> I think my 3rd party library is using the MSVCRT runtime. Is thereany
> way I can use this 3rd party lib then and cygwin?
> 

You are mixing Microsoft new and old iostream libs.  MSVCRT.lib is
for new iostream and msvcirt.lib for old iostream. You
cannot do that.  Check http://msdn.microsoft.com and do a MSDN
search on MSVCRT.DLL, this will pull a Knowledge Base article
about new iostream and old iostream libs.

Also MSVCIRT.DLL and MSVCRT40.dll, both use M$ old isostream.
You cannot use msvcrt40.dll and msvcirt.dll for a same
executable.  Check msdn.microsoft.com for more details and how
to resolve conflicts.

Suhaib

> Is this a general problem that MSVC libraries are not usable? So
> the 3rd party vendor has to support a cygwin version?
> 
> Cheers
> Tommy
> 
> --
> ------------------------------------------------------------------------
> 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
> 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]