the new gui is not yet available for Win32 and guitest will not work.
However, I've cleanedup the source to remove the warnings. We hope to get
a port sometime later this year (Valery maybe?) but for the time being
we lack Win32 capable manpower.
Cheers, Fons.
rene Scholte wrote:
>
> Hello ROOT-team,
>
> when i try to compile and link the guitest.cxx (with a modified version of
> the makefile and Visual C++ 5.0) which comes with the new Root 2.0 for
> Windows NT I get the following errors :
>
> ------------------
>
> D:\rene\VI's\v550\analyse_macros\testing123>nmake /f mak.txt
>
> Microsoft (R) Program Maintenance Utility Version 1.62.7022
> Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
>
> cl -DWIN32 -D_WIN32 -D_MT -D_DLL -MD /Zd /O2 /G5 /MD -D_WINDOWS
> -Id:\ro
> ot/include -c guitest.cxx
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
> Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
>
> guitest.cxx
> d:\root/include\TGFrame.h(141) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(142) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(143) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(144) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(145) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(146) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(148) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(149) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(150) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(223) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(224) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(225) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(226) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(227) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(228) : warning C4138: '*/' found outside of comment
> d:\root/include\TGFrame.h(229) : warning C4138: '*/' found outside of comment
> guitest.cxx(944) : warning C4508: 'main' : function should return a value;
> 'void
> ' return type assumed
> link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO
> -subsystem
> :console,4.0 guitest.obj d:\root/lib/*.lib msvcrt.lib oldnames.lib
> kernel32.lib
> ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib
> winspool.
> lib MSVCIRT.LIB /out:guitest.exe
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGTextEntry::fgDefaultGC" (?fgDefaultGC@TGTextEntry@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGTextEntry::fgDefaultFontStruct"
> (?fgDefaultFontStruct@TGTextEntry@@1
> KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGButton::fgDefaultGC" (?fgDefaultGC@TGButton@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGTextButton::fgDefaultFontStruct"
> (?fgDefaultFontStruct@TGTextButton@
> @1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGFrame::fgWhitePixel" (?fgWhitePixel@TGFrame@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGFrame::fgDefaultFrameBackground"
> (?fgDefaultFrameBackground@TGFrame@
> @1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGRadioButton::fgDefaultGC" (?fgDefaultGC@TGRadioButton@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGRadioButton::fgDefaultFontStruct"
> (?fgDefaultFontStruct@TGRadioButto
> n@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGCheckButton::fgDefaultGC" (?fgDefaultGC@TGCheckButton@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGCheckButton::fgDefaultFontStruct"
> (?fgDefaultFontStruct@TGCheckButto
> n@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGTab::fgDefaultGC" (?fgDefaultGC@TGTab@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGTab::fgDefaultFontStruct" (?fgDefaultFontStruct@TGTab@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGLabel::fgDefaultGC" (?fgDefaultGC@TGLabel@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGLabel::fgDefaultFontStruct" (?fgDefaultFontStruct@TGLabel@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGGroupFrame::fgDefaultGC" (?fgDefaultGC@TGGroupFrame@@1KA)
> guitest.obj : error LNK2001: unresolved external symbol "protected: static
> unsig
> ned long TGGroupFrame::fgDefaultFontStruct"
> (?fgDefaultFontStruct@TGGroupFrame@
> @1KA)
> guitest.exe : fatal error LNK1120: 16 unresolved externals
> NMAKE : fatal error U1077: 'link' : return code '0x19'
> Stop.
>
> -----------------
>
> All the link errors are connected with the four types
>
> static Cursor_t
> static GContext_t
> static GContext_t
> static FontStruct_t
>
> So is this a bug somewhere in the libraries or am I doing something wrong ?
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910