RE: ROOT complaining missing msvcprt.lib after the reinstallation of VC++2008 express

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Mon, 14 Dec 2009 16:31:37 +0100


Hi Wei,

Ok, well, I see. This is maybe due to the limitations of the free version of Visual Studio (VC++2008 express). I'll check as soon as possible and let you know

Cheers, Bertrand.

-----Original Message-----
From: Wei Xie [mailto:wxie_at_purdue.edu]
Sent: Monday, December 14, 2009 16:18
To: Bertrand Bellenot
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] ROOT complaining missing msvcprt.lib after the reinstallation of VC++2008 express

Hi Bertrand

The issue looks like a VC++ re-installation problem. Probably I should not have post the message here. Any way, I have been using the binaries downloaded from ROOT website "release version 5.24.00". Starting bare root and also running macros in ROOT has no problem at all. The problem comes when I try to compile a macro, e.g. a simple empty one

   #include <iostream>
   void test()
   {
     cout<<"___"<<endl;
   }

Then it shows the error message:

  LINK : fatal error LNK1104: cannot open file 'msvcprt.lib'   Error in <ACLiC>: Compilation failed!

This problem did not show up till I reinstall VC++2008 express. I checked the my local "/Microsoft Visual Studio 9.0/VC/lib" and can not find this lib although the installer says the installation is successful.Actually it also missing a few other libraries like the "kernal*.lib". So it's really a VC++ 2008 express re-installation problem. The reason I try to re-install VC++ is when compiling the ROOT source from my local, VC++ complains missing files at "/Microsoft Visual Studio 9.0/VC/include/CodeAnalysis". re-installation wouldn't solve this issue either.

Thanks
--Wei

Bertrand Bellenot wrote:
> Hi Wei,
>
> I don't know what you're trying to solve, but all you describe in your
> mail should not be necessary at all.
> If you reinstalled MSVC++ 2008, then all you need is in place.
> When the system complains about missing dlls, it is usually because you
> mix debug and release versions of the run-time dlls. Then a few
> questions:
> How did you install Root (from source or binaries)?
> Which version?
> Is the system already complaining when you start bare root?
>
> Cheers, Bertrand.
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Wei Xie
> Sent: Sunday, December 13, 2009 18:33
> To: roottalk (Mailing list discussing all aspects of the ROOT system.)
> Subject: [ROOT] ROOT complaining missing msvcprt.lib after the
> reinstallation of VC++2008 express
>
> I have to reinstall my VC++ 2008 but after that ROOT complains missing
> "msvcprt.lib". I check my VC++ lib and can only find "msvcrt.lib and
> msvcrtd.lib". The following website shows how to get the "msvcprt.lib"
> for VC++2003:
>
> http://root.cern.ch/root/Procedure/Procedure%20to%20install%20the%20free
> %20Microsoft%20Visual%20C.htm
>
> I tried the two command as instructed on the web:
>
> 1. dumpbin /exports /OUT:msvcprt.def msvcp90.dll
> 2. lib /def:msvcprt.def
>
> The 1st one is successful and created a "msvcprt.def" but the 2nd one
> failed with many lines of complaining:
>
> >> msvcprt.def(3200) : warning LNK4017: 3184 statement not supported
> for the target
>
> What could be the problem ?
>
> Thanks
> --Wei
>

--
Dept. of Physics, Purdue Univ.
525 Northwestern Ave., West Lafayette, IN 47907

http://www.physics.purdue.edu/people/faculty/wxie.shtml
Tel: 765-494-8743, Fax: 765-494-0706
_______________________________________________________
Received on Mon Dec 14 2009 - 16:31:42 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 15 2009 - 17:50:02 CET