Fixing Link-Time Problems

After the XL Fortran compiler processes the source files, the linker links the resulting object files together. Any messages issued at this stage come from the ld command. A frequently encountered error and its solution are listed here for your convenience:


filename.o: In function 'main':
filename.o(.text+0x14): undefined reference
to 'p'
filename.o(.text+0x14): relocation truncated
to fit: R_PPC_REL24 p

Symptom: A program cannot be linked because of unresolved references.
Explanation: Either needed object files or libraries are not being used during linking, there is an error in the specification of one or more external names, or there is an error in the specification of one or more procedure interfaces.
Solution: You may need to do one or more of the following actions:

IBM Copyright 2003