Loading "libMathCore"

Hi,

I have a problem with the library libCoreMath.

I want to compile my script by: .L test.C+

#include <TSystem.h>

void test(){
gSystem->Load(“libMathCore”);

return;
}

This is just the interesting part otherwise it would be far too long :wink: .

But I got an error and I don’t know how to solve this problem. Can please somebody give me a hint?

Thanks,
Stephan

Hi,

The code fragment you presented works fine in my environment (i.e. you might have strip it down too much).

[quote]But I got an error and I don’t know how to solve this problem[/quote]What error did you get?

In addition, calling gSystem->Load from your function is unlikely to be what you need. Instead might want to try:root [] gSystem->Load("libMathCore"); root [] .L test.C+Cheers,
Philippe

The error is:

error: no matching function for call to `TSystem::Load()’
/cern/root-5.12.00e/root/include/TSystem.h:377: note: candidates are: virtual int TSystem::Load(const char*, const char*, Bool_t)

I know that I can use the gSystem from the command line, but I want to avoid this :slight_smile: .

Stephan

Ok, it is fine now.
And thanks for your reply. I think I got confused in my script :slight_smile:.

Now it works.

Stephan