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

From: ANCIANT E. (eric.anciant@sodern.fr)
Date: Tue Mar 09 2004 - 09:17:57 MET


Hi Valeri, Andreas,

On my system I have only one occurrence of 'win32.mak',
in visual directory  x/VS/VC98/INCLUDE.

This file seems to be properly found and processed by nmake,
(as Andreas shows below, if the inclusion !include <win32.mak> is removed (commented), the makefile doesn't work at all, not even the compilation command 'cl' is defined !)
moreover, the compilation options Valeri is talking about (=/INCREMENTAL:NO /NOLOGO -subsystem:console,5.0) and libraries to be linked (kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib) DOES appear in the log.

Therefore I doubt there is a problem with the win32.mak inclusion

eric


-----Message d'origine-----
De : Andreas Zoglauer [mailto:zog@mpe.mpg.de]
Envoyé : lundi 8 mars 2004 19:38
À : Valeri Fine
Cc : ANCIANT E.; 'Rene Brun'; 'Andreas Zoglauer'; 'Nick van Eijndhoven'; roottalk@pcroot.cern.ch
Objet : Re: RE : [ROOT] Different behavior (i.e. Crash) of TString on Linux andWindows

Hi Valeri:

Valeri Fine schrieb:

> To test this I would appreciate a lot some one with VC6 in possession
> try to correct the Makefile.win32 to see whether that makes any
> difference?
>
> ( I can not check myself since I have no VC6 ;-(
>
> conlflags =/INCREMENTAL:NO /NOLOGO -subsystem:console,5.0
>
>  or
>
> conlflags =/INCREMENTAL:NO /NOLOGO -subsystem:console,4.0
>
> guilibsdll=kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib
>            user32.lib gdi32.lib comdlg32.lib winspool.lib
>
>

When my Makefile.win32 looks like this:

#!include <win32.mak>
conlflags =/INCREMENTAL:NO /NOLOGO -subsystem:console,4.0
guilibsdll=kernel32.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib
gdi32.lib comdlg32.lib winspool.lib

I get:
C:\Daten\Root\root\test>nmake -f Makefile.win32

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

           -EHsc  -nologo -G5 -GR -MD -DWIN32  -DVISUAL_CPLUSPLUS
-D_WINDOWS -IC
\Daten\Root\Root/include -O2 -c Event.cxx
Der Befehl "-EHsc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
NMAKE : fatal error U1077: '-EHsc' : return code '0x1'
Stop.


When my Makefile.win32 looks like this:

!include <win32.mak>
conlflags =/INCREMENTAL:NO /NOLOGO -subsystem:console,4.0
guilibsdll=kernel32.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib
gdi32.lib comdlg32.lib winspool.lib

I get:

C:\Daten\Root\root\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\Root/include -O2 -c
Event.cxx
Event.cxx
         cl -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -EHsc  -nologo -G5 -GR
-MD -DWIN32
   -DVISUAL_CPLUSPLUS -D_WINDOWS -IC:\Daten\Root\Root/include -O2 -c
EventDict.cx
x
EventDict.cxx
         BINDEXPLIB  libEvent Event.obj  EventDict.obj > libEvent.def
         lib -nologo -MACHINE:IX86 Event.obj  EventDict.obj
-def:libEvent.def -ou
t:libEvent.lib
    Creating library libEvent.lib and object libEvent.exp
         link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO
-entry:_Dl
lMainCRTStartup@12 -dll -opt:ref /INCREMENTAL:NO /NOLOGO
-subsystem:console,4.0
-nologo Event.obj  EventDict.obj libEvent.exp
C:\Daten\Root\Root/lib/libCore.lib
   C:\Daten\Root\Root/lib/libCint.lib C:\Daten\Root\Root/lib/libHist.lib
  C:\Date
n\Root\Root/lib/libGraf.lib C:\Daten\Root\Root/lib/libGraf3d.lib
C:\Daten\Root\
Root/lib/libGpad.lib C:\Daten\Root\Root/lib/libTree.lib
C:\Daten\Root\Root/lib/
libRint.lib C:\Daten\Root\Root/lib/libPostscript.lib
C:\Daten\Root\Root/lib/lib
Matrix.lib C:\Daten\Root\Root/lib/libPhysics.lib kernel32.lib ws2_32.lib
mswsock
.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
MSVCPRT.LIB -ou
t:libEvent.dll
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
Event.obj : error LNK2001: unresolved external symbol "const
type_info::`vftable
'" (??_7type_info@@6B@)
EventDict.obj : error LNK2001: unresolved external symbol "const
type_info::`vft
able'" (??_7type_info@@6B@)
Event.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
EventDict.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
Event.obj : error LNK2001: unresolved external symbol __fltused
EventDict.obj : error LNK2001: unresolved external symbol __fltused
Event.obj : error LNK2001: unresolved external symbol __except_list
EventDict.obj : error LNK2001: unresolved external symbol __except_list
Event.obj : error LNK2001: unresolved external symbol __imp__sprintf
Event.obj : error LNK2001: unresolved external symbol "void * __cdecl
operator n
ew(unsigned int)" (??2@YAPAXI@Z)
EventDict.obj : error LNK2001: unresolved external symbol "void *
__cdecl operat
or new(unsigned int)" (??2@YAPAXI@Z)
Event.obj : error LNK2001: unresolved external symbol __ftol
EventDict.obj : error LNK2001: unresolved external symbol _atexit
EventDict.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh ve
ctor constructor iterator'(void *,unsigned int,int,void
(__thiscall*)(void *),vo
id (__thiscall*)(void *))" (??_L@YGXPAXIHP6EX0@Z1@Z)
EventDict.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh ve
ctor destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(void *))" (
??_M@YGXPAXIHP6EX0@Z@Z)
MSVCPRT.LIB(delop_s.obj) : error LNK2001: unresolved external symbol _free
libEvent.dll : fatal error LNK1120: 12 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.



Ciao,
Andreas




********
Ce message et eventuellement les pieces jointes sont exclusivement transmis a l'usage de leur destinataire. Leur contenu est strictement confidentiel. Si vous n etes pas le bon destinataire nous vous demandons de ne pas conserver, copier, utiliser ou divulguer cette communication. Merci de le detruire et de me notifier cette erreur.

INTERNET ne permettant pas d assurer l integrite de ce message, SODERN decline toute responsabilite au cas ou il aurait ete intercepte ou modifie.


This message and possibly attachments are transmit for the exclusive use of their address. Their content is strictly confidential. If you are not the intended recipient please do not keep, copy, use or disclose this communication to others. Also please delete it and notify the sender at once.

Because of the nature of INTERNET the sender is not in a position to ensure the integrity of this message, therefore SODERN disclaims any liability whatoever in the event of this message having been intercepted and/or altered.



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