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

From: Andreas Zoglauer (zog@mpe.mpg.de)
Date: Mon Mar 08 2004 - 19:37:57 MET


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



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