RE: [ROOT] Problem with TString

From: Valeri Fine (fine@bnl.gov)
Date: Mon Jan 12 2004 - 17:57:16 MET


I am not sure there is any bug here to investigate:

root [0] TString hello("Hello you")
root [1] hello
(class TString)""
root [2] (const char *)hello
(const char* 0x1012764)"Hello you"
root [3]


It seems to me this is a correct behavior isn't it?
----
Best regards
                   Valeri


> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch] On
> Behalf Of Rene Brun
> Sent: Monday, January 12, 2004 3:37 AM
> To: ANCIANT E.
> Cc: 'Martijn Schellekens'; roottalk@pcroot.cern.ch
> Subject: Re: [ROOT] Problem with TString
> 
> Hi Eric,
> 
> As indicated in our installation procedure, our Makefiles under
Windows
> assume the CYGWIN environment. Valery Onuchin is working on an
> automaticatic generation of a Visual Studio project from our CVS, but
> this still requires some work.
> You can also see the discussion at the F.X.Gentit page at:
> http://www.slac.stanford.edu/~gentit/
> 
> Rene Brun
> 
> "ANCIANT E." wrote:
> >
> > Hello René,
> >
> > In fact I was using the "makefile.win32" file to compile from a
console (and
> > this is probably the source of my problem) because
> > the Makefile file did not work (see trace below ), now I am
wondering If I
> > should not have imported the WIN32.mak file into VC6
> > instead (which I don't know how to do ..)
> > ... next step is to manage to get the correct options from within
visual ...
> >
> > cheers,
> >
> > eric
> >
> > P:\APS_Local\test>nmake clean
> >
> > Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > Makefile.arch(8) : fatal error U1033: syntax error : '=' unexpected
> > Stop.
> >
> > P:\APS_Local\test>nmake /f makefile.win32 clean
> >
> > Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > P:\APS_Local\test>nmake tstring.exe
> >
> > Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > Makefile.arch(8) : fatal error U1033: syntax error : '=' unexpected
> > Stop.
> >
> > P:\APS_Local\test>nmake /f makefile.win32 tstring.exe
> >
> > 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
-Ip:\root_v3.10.02.win32gdk_Debug/include
> > -O2 -c
> >  tstring.cxx
> > tstring.cxx
> >         link -opt:ref /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE
/RELEASE
> > /NOLOGO -
> > subsystem:console,4.0 -nologo tstring.obj
> > p:\root_v3.10.02.win32gdk_Debug/lib/li
> > bCore.lib  p:\root_v3.10.02.win32gdk_Debug/lib/libCint.lib
> > p:\root_v3.10.02.win3
> > 2gdk_Debug/lib/libHist.lib
p:\root_v3.10.02.win32gdk_Debug/lib/libGraf.lib
> > p:\r
> > oot_v3.10.02.win32gdk_Debug/lib/libGraf3d.lib
> > p:\root_v3.10.02.win32gdk_Debug/l
> > ib/libGpad.lib p:\root_v3.10.02.win32gdk_Debug/lib/libTree.lib
> > p:\root_v3.10.02
> > .win32gdk_Debug/lib/libRint.lib
> > p:\root_v3.10.02.win32gdk_Debug/lib/libPostscrip
> > t.lib  p:\root_v3.10.02.win32gdk_Debug/lib/libMatrix.lib
> > p:\root_v3.10.02.win32g
> > dk_Debug/lib/libPhysics.lib msvcrt.lib oldnames.lib kernel32.lib
ws2_32.lib
> > msw
> > sock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
> > MSVCPRT.LIB
> >  -out:tstring.exe
> > "tstring.exe done"
> >
> > > -----Message d'origine-----
> > > De:   Rene Brun [SMTP:Rene.Brun@cern.ch]
> > > Date: vendredi 9 janvier 2004 16:17
> > > À:    ANCIANT E.
> > > Cc:   'Martijn Schellekens'; roottalk@pcroot.cern.ch
> > > Objet:        Re: [ROOT] Problem with TString
> > >
> > > Hi Erik,
> > >
> > > You are using the wrong compilation options. Try to build
tstring.exe
> > > with the standard makefile in $ROOTSYS/test. The result of the
build
> > > will be:
> > >
> > > make
> > > cl -O2 -G5 -GR -GX -MD -DWIN32 -D_WINDOWS -nologo
-DVISUAL_CPLUSPLUS
> > > -D_X86_=1
> > > -D_DLL -MD -I'C:\cygwin\home\brun\rootgdk
> > > \root\include' -c tstring.cxx
> > > tstring.cxx
> > > link -opt:ref -pdb:none -nologo tstring.obj
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libCore.lib'
> > > 'C:\cygwin\home\brun\root
> > > gdk\root\lib\libCint.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libHist.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libGr
> > > af.lib' 'C:\cygwin\home\brun\rootgdk\root\lib\libGraf3d.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libGpad.lib' 'C:\cygw
> > > in\home\brun\rootgdk\root\lib\libTree.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libRint.lib'
> > > 'C:\cygwin\home\brun\rootg
> > > dk\root\lib\libPostscript.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\lib\libMatrix.lib'
> > > 'C:\cygwin\home\brun\rootgdk\root\li
> > > b\libPhysics.lib'  -out:tstring.exe
> > >
> > >
> > > Also read carefully our notice concerning the Windows distribution
at the
> > > bottom
> > > of the page: http://root.cern.ch/root/Version310.html
> > >
> > > If you work with the old MS VC++^ compiler, you may have to
download
> > > a few DLLs.
> > >
> > > Rene Brun
> > > "ANCIANT E." wrote:
> > > >
> > > > I don't know if this is linked, but also with ROOT 3.10/02 WIN2K
GDK
> > > (visual
> > > > 6 with a newly installed service pack 5 :-) )
> > > > test/TString.exe crashes
> > > >
> > > > (compilation does not show anything wrong :
> > > >  cl -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -EHsc  -nologo -G5 -GR
-MD
> > > -DWIN32
> > > > -DVISUAL_CPLUSPLUS -D_WINDOWS
-Ip:\root_v3.10.02.win32gdk_Debug/include
> > > -O2
> > > > -c tstring.cxx
> > > > tstring.cxx
> > > >         link -opt:ref /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE
/RELEASE
> > > > /NOLOGO -subsystem:console,4.0 -nologo tstring.obj
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libCore.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libCint.lib
p:\root_v3.10.02.win3
> > > > 2gdk_Debug/lib/libHist.lib
> > > p:\root_v3.10.02.win32gdk_Debug/lib/libGraf.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libGraf3d.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/l
> > > > ib/libGpad.lib p:\root_v3.10.02.win32gdk_Debug/lib/libTree.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libRint.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libPostscrip
> > > > t.lib  p:\root_v3.10.02.win32gdk_Debug/lib/libMatrix.lib
> > > > p:\root_v3.10.02.win32gdk_Debug/lib/libPhysics.lib msvcrt.lib
> > > oldnames.lib
> > > > kernel32.lib  ws2_32.lib msw
> > > > sock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib
winspool.lib
> > > > MSVCPRT.LIB -out:tstring.exe
> > > > "tstring.exe done"
> > > >
> > > > )
> > > >
> > > > but executing it results in an access violation
> > > >
> > > > eric
> > > >
> > > > > -----Message d'origine-----
> > > > > De:   Martijn Schellekens
[SMTP:Martijn.Schellekens@iota.u-psud.fr]
> > > > > Date: vendredi 9 janvier 2004 10:25
> > > > > À:    roottalk@pcroot.cern.ch
> > > > > Objet:        [ROOT] Problem with TString
> > > > >
> > > > > Hi Rooters,
> > > > >
> > > > > I just wanted to report a problem with TString in the latest
version:
> > > > > windows gdk 3.10/2
> > > > >
> > > > >  >TString hello("hello you")
> > > > >  >hello
> > > > > (class TString) ""
> > > > >
> > > > > whereas the result should have been off course
> > > > > (class TString) "hello you"
> > > > >
> > > > > Generally speaking TString can not be given any content
> > > > > Hence hello.Append(" there") results in the same void string
> > > > >
> > > > > This version has been used under windows XP pro, running in a
vmware
> > > > > workstation.
> > > > > Other objects seemed to work yet I have not done extensive
testing.
> > > > >
> > > > > Thanks and bye,
> > > > >
> > > > > Martijn Schellekens



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