Re: libPythia.so loading problem

Nick van Eijndhoven (Nick@phys.uu.nl)
Tue, 23 Feb 1999 17:14:37 +0100


Tioukov Valeri wrote:
>
> Dear Nick,
>
> Following to Pasha adwice it seems that I suceeded to solve this
> particular case.
>
> I fond the unresolved modules in the library /usr/lib/libgcc.a
> So to compile pythia and jetset I used the modified makefile from
> hpbrun.../pythia/makelib_linux :
>
> --------------------------------------------------------
> # /bin/sh
> g77 -c jetset74.f
> g77 -c pythia5707.f
> echo 'void MAIN__() {}' >main.c
> gcc -c main.c
> mkdir obj77
> cd obj77
> ar x /usr/lib/libf2c.a
> ar x /usr/lib/libgcc.a <---------------------- added by VT
> cd ..
> g++ -shared -Wl,-soname,libPythia.so -o libPythia.so *.o obj77/*.o
> /bin/rm -f -r obj77
> ---------------------------------------------------------
>
> Now Pythia was loaded normally but later faled with seria of warnings:
>

Hi Valery,
Thanks for your message, but I want to dynamically load Pythia
into a ROOT session on windows95 running MSVC++.
So I want to be able to :

root4for

Root> gSystem->Load("Root_EG.dll")
Root> gSystem->Load("Root_Pyhtia.dll")
Root> gSystem->Load(...) // whatever dll's I need to load more
Root> TPythia q
Root> q.xxxx // To make the Pythia setup and run events

Could anyone please provide a complete example of how to achieve
this on windows95 machines ?

-- 

Cheers, Nick.

*----------------------------------------------------------------------* Dr. Nick van Eijndhoven Department of Subatomic Physics email : nick@phys.uu.nl Utrecht University / NIKHEF tel. +31-30-2532331 (direct) P.O. Box 80.000 tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht fax. +31-30-2518689 The Netherlands WWW : http://www.phys.uu.nl/~nick Office : Ornstein lab. 172 ---------------------------------------------------------------------- tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 fax. +41-22-7679480 Switzerland CERN beep : 13+7294 Office : B 160 1-012 *----------------------------------------------------------------------*