Issue loading dynamic link library libMathCore

Hello,

I recently installed ROOT 5.32.01 on a new machine with Windows 7 (package root_v5.32.01.win32.vc90.msi). On this machine I have Microsoft Visual Studio 2010 Express installed.
When I try to launch a ROOT session, I immediately get a message about the impossibility to load dynamic link library libMathCore.
Could you help me?
Thank you in advance!
Cheers

P.

Hi,

First of all, if you have Visual Studio 2010, you should have taken root_v5.32.01.win32.vc10.msi…
But that’s weird anyway. What is the exact error message you get?

Cheers, Bertrand.

Hi Bertrand, thank you for your reply.

The exact error is:

./C:\root\bin\libMathCore.dll: Impossibile trovare il modulo specificato.
Load Error: Failed to load Dynamic link library ./C:\root\bin\libMathCore.dll

The first line is in Italian, it means “Impossible to find the specified module”.
I checked and libMathCore.dll is present in C:\root\bin

OK, then check that the ROOTSYS environment variable is properly set, and that %ROOTSYS%\bin is in your PATH. And note that this error could also mean there is a missing dependency issue (e.g. MSVC runtime libraries).
Anyway, you should first install a ROOT version matching your compiler version (as it is impossible to mix c++ binaries…)

Cheers, Bertrand.

Hi, my environment variables are:

ROOTSYS C:\root
Path C:\root\bin

Anyway, I am installing the ROOT version matching my compiler version and I will let you know.
Many thanks!

P.

Hello, I installed root_v5.32.01.win32.vc10.msi but nothing changed.
Could you give me more details about the missing dependency issue? How can I check and (hopefully) solve it?
Thanks again.

P.

Hi,

Weird… [quote=“plarocca”]Could you give me more details about the missing dependency issue? How can I check and (hopefully) solve it?[/quote]There are tools to check the dependencies. For example Dependency Walker

[quote=“plarocca”]Hi, my environment variables are:
ROOTSYS C:\root
Path C:\root\bin[/quote]I hope that your PATH doesn’t contain only C:\root\bin
And BTW, how do you start Root?

Cheers, Bertrand.

Hi Bertrand,

the PATH variable contains many other paths, I just reported the one concerning ROOT.
I usually start ROOT typing root at the MS DOS prompt. By the way, it happens something “unusual”: the command root starts a new window with the ROOT prompt, whereas I am used to get the ROOT prompt in the same window where I launch ROOT. I have never observed this behaviour on other machines with the same ROOT version installed. Could be a problem?
In the meanwhile I will try to check the dependencies.
Thanks!

Hi,

[quote=“plarocca”]By the way, it happens something “unusual”: the command root starts a new window with the ROOT prompt[/quote]Well, I never had this kind of problem, but this looks like a permission issue (you don’t have enough rights…)
This could come from the way you installed ROOT (just trying to guess… did you run the msi as admin?)

Cheers, Bertrand.