Calling CERNLIB routines

I have been trying to follow the examples given in the “How to Call CERNLIB routines…”. I am running on Debian, gcc version 3.3.4. When I try the first method, I get the following error: TCanvas::MakeDefCanvas: created default TCanvas with name c1
Error: Function denlan_(&val) is not defined in current scope FILE:fitlan.C LINE:4 Possible candidates are… filename line:size busy function type and name

When I tried the second method, I got the following error upon compilation: /tmp/ccVRCZEo.o(.text+0xd): In function DENLAN(float&)': : undefined reference todenlan’
collect2: ld returned 1 exit status

Any help would be appreciated.

On behalf of jacek Holeczek,

You should try the :
which has the requested “denlan” built-in.