[ROOT] Building 3.05/3 shared library on Win2k

From: Ed Oltman (eoltman@imago.com)
Date: Mon Mar 24 2003 - 17:07:38 MET


Hello,
 I am attempting to follow the instructions in
http://root.cern.ch/root/Version305.html for building a dll under Win2k.
Rather than using a makefile, I've been building my dll using the VC++ 6.0
project facility.  I've added the /GX option and I've attempted to fore the
MSVCPRT runtime to load, but I cannot do it:  Here's link options:

libCore.lib libCint.lib libHist.lib libMinuit.lib libGraf.lib libGraf3d.lib
libGpad.lib libTree.lib libRint.lib libPostscript.lib libMatrix.lib
libPhysics.lib massdata.lib MSVCPRT.LIB kernel32.lib user32.lib gdi32.lib
advapi32.lib /nologo /dll /pdb:none /machine:I386
/out:"release/analysis.dll" /implib:"release/analysis.lib"
/libpath:"$(ROOTSYS)\lib"

(note: I added MSVCPRT.LIB to the list - I MSVCIRT.LIB was never there -
VC++ must have inferred it)


And here's my compile options:

/nologo /G5 /MD /W3 /GR /GX /O2 /I "$(ROOTSYS)\include" /D "_DLL"
/D "_MT" /D "NDEBUG" /D "WIN32" /D "VISUAL_CPLUSPLUS" /D
"_WINDOWS" /FR"release/" /Fo"release/" /Fd"release/" /FD /c


When I examime the dependancies with Dependency Walker, I find that
MSVCPRT.DLL is not used, but MVSCIRT.DLL called by libCINT.  Is this a
problem?

Ed Oltman



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET