Mathematical library routine

Hi all

i want to call the matematical library routine in root how can i do that

see examples in $ROOTSYS/tutorials/math, ie
-link with the needed libs like libMathCore, libMathMore
-dynamically link these libs like shown in the scripts

Rene