RE: [ROOT] Different behaviour (i.e. Crash) of TString on Linux andWindows

From: Valeri Fine (fine@bnl.gov)
Date: Mon Mar 08 2004 - 18:24:25 MET


Hello Andreas,

  Thank you very much for your "zip".
  Your "tstring.exe" does crash on my machine, when the "tstring.exe" I
made myself locally does work properly.

But when I re-created the "tstring.exe" from YOUR "tstring.obj" with no
re-compilation I did get the working version of tstring.exe as well.

Now, compare my "link protol" made by runing "Makefile.win32 with yours
to realize my list of the system libraries Makefile.win32 links
"tstring.obj" against of doesn't match yours. 

Yours:

/INCREMENTAL:NO -subsystem:console,4.0  /NODEFAULTLIB  /PDB:NONE
/RELEASE

Mine:

/INCREMENTAL:NO /-subsystem:console,5.0
 
 The difference above in your log made me suspect the Makefile.win32 you
built your 'exe' mismatched one I applied.

At this point I am wondering why? Eventually the list of the system
libraries is to be provided by " !include <win32.mak> "NMAKE statement.

Are you sure your "LIB" variable, and "INCLUDE", and "PATH" variable did
point one and the same version of Visial Studio at the compilation time.

Can you send me your version of Makefile.win32?

I could not check some things up because I found no VC++ 6 around, sorry
:-(

Thank you, Valeri 


        link -opt:ref  /INCREMENTAL:NO /NOLOGO -subsystem:console,5.0
 -nologo tstring.obj 

c:\cygwin\home\fine\work\ROOT\3.10.02\root/lib/libCore.lib  c:\cygwin\
home\fine\work\ROOT\3.10.02\root/lib/libCint.lib
c:\cygwin\home\fine\work\ROOT\3
.10.02\root/lib/libHist.lib
c:\cygwin\home\fine\work\ROOT\3.10.02\root/lib/libG
raf.lib c:\cygwin\home\fine\work\ROOT\3.10.02\root/lib/libGraf3d.lib
c:\cygwin\
home\fine\work\ROOT\3.10.02\root/lib/libGpad.lib
c:\cygwin\home\fine\work\ROOT\3
.10.02\root/lib/libTree.lib
c:\cygwin\home\fine\work\ROOT\3.10.02\root/lib/libR
int.lib c:\cygwin\home\fine\work\ROOT\3.10.02\root/lib/libPostscript.lib
c:\cyg
win\home\fine\work\ROOT\3.10.02\root/lib/libMatrix.lib
c:\cygwin\home\fine\work\
ROOT\3.10.02\root/lib/libPhysics.lib 

kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib
comdlg32.lib winspool.lib MSVCPRT.LIB -out:tstring.exe


----
Best regards
                   Valeri


> -----Original Message-----
> From: Andreas Zoglauer [mailto:zog@mpe.mpg.de]
> Sent: Monday, March 08, 2004 11:39 AM
> To: Valeri Fine
> Cc: roottalk@pcroot.cern.ch
> Subject: Re: [ROOT] Different behaviour (i.e. Crash) of TString on
Linux
> andWindows
> 
> Valeri Fine wrote:
> 
> >
> > Can you send (upload somewhere otherwise my E-mail server will not
get
> > it through) me "tstring.exe"/"tstring.obj" and log of the session of
> > your "nmake -f Makefile.win32" (Of course if you still keep it?)
> 
> The winzipped files are here: http://www.mpe.mpg.de/MEGA/test/
> 
> The compile output was:
> 
> C:\Daten\Root\r040002\test>nmake -f Makefile.win32
> 
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> 
>          cl -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -EHsc  -nologo -G5 -GR
> -MD -DWIN32
>    -DVISUAL_CPLUSPLUS -D_WINDOWS -IC:\Daten\Root\R040002/include -O2
-c
> tstring.c
> xx
> tstring.cxx
>          link -opt:ref /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE
/RELEASE
> /NOLOGO -
> subsystem:console,4.0 -nologo tstring.obj
> C:\Daten\Root\R040002/lib/libCore.lib
>   C:\Daten\Root\R040002/lib/libCint.lib
> C:\Daten\Root\R040002/lib/libHist.lib  C:
> \Daten\Root\R040002/lib/libGraf.lib
> C:\Daten\Root\R040002/lib/libGraf3d.lib  C:\
> Daten\Root\R040002/lib/libGpad.lib
C:\Daten\Root\R040002/lib/libTree.lib
>   C:\Dat
> en\Root\R040002/lib/libRint.lib
> C:\Daten\Root\R040002/lib/libPostscript.lib  C:\
> Daten\Root\R040002/lib/libMatrix.lib
> C:\Daten\Root\R040002/lib/libPhysics.lib ms
> vcrt.lib oldnames.lib kernel32.lib  ws2_32.lib mswsock.lib
advapi32.lib
> user32.l
> ib gdi32.lib comdlg32.lib winspool.lib MSVCPRT.LIB -out:tstring.exe
> "tstring.exe done"
> 
> 
> Ciao,
> Andreas



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET