[ROOT] Linking problem under Windows NT 4.0 with visual C++ 6.0

From: Sylvain HEILLIETTE (she26286@club-internet.fr)
Date: Tue Nov 20 2001 - 23:24:22 MET


	Hello,

I have got troubles to link my application
to the root libraries.
Here is my command line :

link -opt:ref /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /DEBUG /NOLOGO
-subsystem:console,4.0 -nologo -pdb:none DataSet.obj Display.obj
Extrema.obj Extrema_Disp.obj FileRequire.obj FitPad.obj gui.obj
LimitData.obj LineParam.obj LineParamDisplay.obj LinesSearching.obj
multiline.obj NLFitting.obj ReShape.obj Spectrum.obj TGLineContainer.obj
TGLineView.obj TGSelFont.obj s.obj t.obj u.obj libCore.lib libCint.lib
libHist.lib libGui.lib libGraf.lib libGraf3d.lib libGpad.lib
libMinuit.lib libTree.lib libRint.lib libPostscript.lib libMatrix.lib
libPhysics.lib msvcprt.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:multiline.exe

It seems to be correct.
And here are the errors :

FitPad.obj : error LNK2001: unresolved external symbol "protected:
static unsigned long  TGFrame::fgWhitePixel"
(?fgWhitePixel@TGFrame@@1KA)
TGLineContainer.obj : error LNK2001: unresolved external symbol
"protected: static unsigned long  TGFrame::fgWhitePixel"
(?fgWhitePixel@TGFrame@@1KA)
TGLineView.obj : error LNK2001: unresolved external symbol "protected:
static unsigned long  TGFrame::fgWhitePixel"
(?fgWhitePixel@TGFrame@@1KA)
FitPad.obj : error LNK2001: unresolved external symbol "protected:
static unsigned long  TGFrame::fgDefaultFrameBackground"
(?fgDefaultFrameBackground@TGFrame@@1KA)
gui.obj : error LNK2001: unresolved external symbol "protected: static
unsigned long  TGFrame::fgDefaultFrameBackground"
(?fgDefaultFrameBackground@TGFrame@@1KA)
TGLineContainer.obj : error LNK2001: unresolved external symbol
"protected: static class TGLayoutHints * 
TGCompositeFrame::fgDefaultHints"
(?fgDefaultHints@TGCompositeFrame@@1PAVTGLayoutHints@@A)
TGLineView.obj : error LNK2001: unresolved external symbol "protected:
static unsigned long  TGFrame::fgBlackPixel"
(?fgBlackPixel@TGFrame@@1KA)
TGLineView.obj : error LNK2001: unresolved external symbol "protected:
static unsigned long  TGFrame::fgDefaultSelectedBackground"
(?fgDefaultSelectedBackground@TGFrame@@1KA)
multiline.exe : fatal error LNK1120: 5 unresolved externals

The strange things is that the symbols ?fgWhitePixel@TGFrame@@1KA,
?fgDefaultFrameBackground@TGFrame@@1KA,
etc ... exists in tle libGui.lib file.

I have heard that There were bugs or unimplemented features for the
win32 version of root
which may explain the problem.
What do you think ?

I use Root 3.01.06 for windows NT version.

Regards,

Sylvain heilliette.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET