Problems with installation


I’m trying to install ROOT from source (root_v4.04.02f.source.tar.gz) with VC++ 6.0

However i get a link error when i try to run the makefile.

This is what i get on Cygwin.

$ ./configure win32
Configuring for win32
Checking whether to build included libfreetype6 … yes
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh … no
Checking for libocci … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for rfio_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for libpacklib, packmd, or packlib … no
Checking for libkernlib, kernmd, or kernlib … no
Checking for libPythia6 … no
Checking for libVenus … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_client.h … no
Checking for libchirp_client … no
Checking for AliEnAPI++.h … no
Checking for libAliEnAPI++ … no
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libz … no
Checking for libpng … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … no
Checking for libldap … no
Checking for Python.h … no
Checking for libpython2.4, libpython2.3, libpython2.2, python24, python23, or Py
thon … no
Checking for libxml/tree.h … no
Checking for libxml2_a, or libxml2 … no
Checking for iconv.h … no
Checking for iconv_a … no
Checking whether to build xrootd … no
Checking for globusdir … no
Checking for GLOBUS_LOCATION … no
Checking for libssl … no
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … no
Checking for libk5crypto … no
Checking whether we’re using MIT Kerberos … no
Checking for libkrb5 … no
Checking for kinit … no
Checking for shadow passwords … no
Checking whether to build libTable … no
Checking for Clarens support … no
Checking for PEAC support … no
Writing config/Makefile.config … done
Writing include/config.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing config.status … done
Converting files in tutorials and test to DOS format … done

Enabled support for asimage, builtin_afterimage, builtin_freetype, exceptions, e
xplicitlink, opengl, thread.

To build ROOT type:


Kevin@klu-9ua6an24qfe /cygdrive/c/root
$ make
build/win/ -nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:d
for.lib -o bin/rmkdepend.exe build/rmkdepend/cppsetup.o build/rmkdepend/ifparser
.o build/rmkdepend/include.o build/rmkdepend/main.o build/rmkdepend/parse.o buil
link: invalid option – n
Try `link --help’ for more information.
make: *** [bin/rmkdepend.exe] Error 1

see e.g. this thread, near the bottom.

Yeah just found that out before. Thanks!

But now another problem arises which i try to make

It complains that atoi and atof is not a member std.

Can this be a VC++ compiler issue??

Output from cygwin:

include\TString.h(408) : error C2039: ‘atoi’ : is not a member of 'std’
include\TString.h(411) : error C2039: ‘atof’ : is not a member of 'std’
make: *** [base/src/String.o] Error 2

Just found out why the errors occur after looking at … light=atoi

OK…now i’ve changed to installing ROOT under VC++ 7.1.

But make still seems to produce link errors.

Cygwin output:

$ make
build/win/ -O2 -Z7 -G5 -GR -GX -MD -DWIN32 -DGDK_WIN32 -D_WIN32 -D_WINDOWS
-DWINVER=0x0400 -nologo -DCRTAPI1=_cdecl -DCRTAPI2=cdecl -D_X86=1 -D_DLL -DVI
nclude -DG__NEWSTDHEADER -Icint/lib/vc7strm -o cint/src/vc7strm.o -c cint/src/
build/win/ -nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:d
for.lib -o cint/main/cint_tmp.exe cint/main/cppmain.o
cint/src/auxu.o cint/src/cast.o cint/src/debug.o cint/src/decl.o cint
/src/disp.o cint/src/dump.o cint/src/end.o cint/src/error.o cint/src/expr.o cint
/src/fread.o cint/src/func.o cint/src/g__cfunc.o cint/src/gcoll.o cint/src/globa
l1.o cint/src/global2.o cint/src/ifunc.o cint/src/inherit.o cint/src/init.o cint
/src/input.o cint/src/intrpt.o cint/src/loadfile_tmp.o cint/src/macro.o cint/src
/malloc.o cint/src/memtest.o cint/src/new.o cint/src/newlink.o cint/src/oldlink.
o cint/src/opr.o cint/src/parse.o cint/src/pause.o cint/src/pcode.o cint/src/pra
gma.o cint/src/quote.o cint/src/scrupto.o cint/src/shl.o cint/src/sizeof.o cint/
src/stdstrct.o cint/src/struct.o cint/src/stub.o cint/src/tmplt.o cint/src/typed
ef.o cint/src/val2a.o cint/src/value.o cint/src/var.o cint/main/G__setup.o cint/
src/winnt.o cint/src/Api.o cint/src/Apiif.o cint/src/BaseCls.o cint/src/CallFunc
.o cint/src/Class.o cint/src/DataMbr.o cint/src/Method.o cint/src/MethodAr.o cin
t/src/Token.o cint/src/Type.o cint/src/Typedf.o cint/src/longif3.o cint/src/vc7s
Creating library cint\main\cint_tmp.lib and object cint\main\cint_tmp.exp
Api.o : error LNK2001: unresolved external symbol “__declspec(dllimport) char co
nst private: static char const * __cdecl std::basic_string<char,struct std::cha r_traits<char>,class std::allocator<char> >::_Nullstr(void)'::2’::_C” (imp?
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) private
: void __thiscall std::basic_string<char,struct std::char_traits,class std
::allocator >::_Eos(unsigned int)” (_imp?_Eos@?$basic_string@DU?$char_tr
aits@D@std@@V?$allocator@D@2@@std@@AAEXI@Z) referenced in function “char const *
__cdecl G__saveconststring__dummy(char const *)” (?G__saveconststring__dummy@@Y
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) private
: bool __thiscall std::basic_string<char,struct std::char_traits,class std
::allocator >::_Grow(unsigned int,bool)” (_imp?_Grow@?$basic_string@DU?$
char_traits@D@std@@V?$allocator@D@2@@std@@AAE_NI_N@Z) referenced in function “ch
ar const * __cdecl G__saveconststring__dummy(char const *)” (?G__saveconststring
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) private
: void __thiscall std::basic_string<char,struct std::char_traits,class std
::allocator >::_Tidy(bool)” (_imp?_Tidy@?$basic_string@DU?$char_traits@D
@std@@V?$allocator@D@2@@std@@AAEX_N@Z) referenced in function “char const * __cd
ecl G__saveconststring__dummy(char const *)” (?G__saveconststring__dummy@@YAPBDP
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) bool __
cdecl std::operator<(class std::basic_string<char,struct std::char_traits,
class std::allocator > const &,class std::basic_string<char,struct std::ch
ar_traits,class std::allocator > const &)” (_imp??Mstd@@YA_NABV?$b
asic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) referenced in functi
on “char const * __cdecl G__replacesymbol_body(char const *)” (?G__replacesymbol
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) private
: void __thiscall std::basic_string<char,struct std::char_traits,class std
::allocator >::_Split(void)” (_imp?_Split@?$basic_string@DU?$char_traits
@D@std@@V?$allocator@D@2@@std@@AAEXXZ) referenced in function “void __cdecl std:
:_Construct(class std::basic_string<char,struct std::char_traits,class std
::allocator > *,class std::basic_string<char,struct std::char_traits
,class std::allocator > const &)” (?_Construct@std@@YAXPAV?$basic_string@D
Api.o : error LNK2019: unresolved external symbol “__declspec(dllimport) void __
cdecl std::_Xran(void)” (_imp?_Xran@std@@YAXXZ) referenced in function "void _
_cdecl std::_Construct(class std::basic_string<char,struct std::char_traits<char

,class std::allocator > *,class std::basic_string<char,struct std::char_t
raits,class std::allocator > const &)" (?_Construct@std@@YAXPAV?$bas
cint\main\cint_tmp.exe : fatal error LNK1120: 7 unresolved externals
make: *** [cint/main/cint_tmp.exe] Error 96

do a make distclean; make.

Problem fixed…well not really because now nmake says that it can’t find

*** Building win32gdk/gdk/src/gdk/gdk-1.3.lib…
NMAKE : fatal error U1052: file ‘makefile.msc’ not found
NMAKE : fatal error U1052: file ‘makefile.msc’ not found
make: *** [win32gdk/gdk/src/gdk/gdk-1.3.lib] Error 2


did you do a make -j2 or something? Could you check whether the file win32gdk/gdk/src/gdk/makefile.msc exists? If it doesn, just try “make” again.


No, i didn’t do make -j2. All i did was just “make”.

Also win32gdk/gdk/src/gdk/makefile.msc doesn’t seem to exist.
Is that file suppose to be there before installation??

I downloaded the source.tar.gz you stated, unpacked it, and ended up with that makefile.msc. So something must have gone wrong with unpacking your tar.gz. Just unpack it again.