lhapdf compilation error
I am trying to use the lhapdf package in the ubuntu repository. I have written a short (working) programme to get started. Then I have added the line.
Call InitPDFsetByNam
With directory replaced by the correct file location. The syntax is listed as existing in the library etc. To compile I typed, as per the online instruction
I was given a slew of errors on compilation:
xx@xx:~$ f95 normal.f95 -o normal -static -lLHAPDF
/usr/lib/
(.text+0xaca): undefined reference to `_gfortran_
/usr/lib/
(.text+0xb47): undefined reference to `_gfortran_
/usr/lib/
(.text+0xb93): undefined reference to `_gfortran_
/usr/lib/
(.text+0x1c4): undefined reference to `_gfortran_
/usr/lib/
(.text+0x2618): undefined reference to `_gfortran_
/usr/lib/
collect2: ld returned 1 exit status
mrmark@
/usr/lib/
(.text+0xaca): undefined reference to `_gfortran_
/usr/lib/
(.text+0xb47): undefined reference to `_gfortran_
/usr/lib/
(.text+0xb93): undefined reference to `_gfortran_
/usr/lib/
(.text+0x1c4): undefined reference to `_gfortran_
/usr/lib/
(.text+0x2618): undefined reference to `_gfortran_
/usr/lib/
collect2: ld returned 1 exit status
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu lhapdf Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: