Loading libraries problem

From: Matej Batic <matej.batic1_at_guest.arnes.si>
Date: Wed, 30 Mar 2005 13:36:00 +0200


Hi all!

I have set of libraries for different platforms, e.g. libSTH_i386.so and libSTH_64.so. I load them within my rootlogon.C script and since I mainly work on one machine, I don't have problems. But now I have to edit rootlogon.C script in order to load correct version of libraries if I work on machines with different platforms. I wanted to make some sort of checking for platform type in rootlogon.C but I don't know how it is done.
If I use gSystem->Exec("uname -i"); the return value would be Int_t (0) and if I use gSystem->Getenv("HOSTTYPE") ($HOSTTYPE being set to 'uname -i' previously) I get empty char*. Is there any way to do this using root built in functions?

Thans in advance,
matej

uname:
Linux 2.4.27-pre6 #13 Thu Jun 17 12:02:00 CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
root:


FreeType Engine v2.1.3 used to render TrueType fonts. Compiled for linuxx8664gcc with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.138, May 23 2004 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. Received on Wed Mar 30 2005 - 13:36:14 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET