Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

RE: undefined reference

bnduncan
Beginner
427 Views
I'm using IFC 8.0 for the first time and am getting the following error:

ifort -cpp -w -O2 -Vaxlib -auto -noalign bpch2_mod.f
/tmp/ifortuPIAwq.o: In function `bpch2_mod_mp_bpch2_hdr_':
/tmp/ifortuPIAwq.o(.text+0xa8): undefined reference to `ioerror_'
/tmp/ifortuPIAwq.o(.text+0xc5): undefined reference to `ioerror_'
/tmp/ifortuPIAwq.o: In function `bpch2_mod_mp_bpch2_':
/tmp/ifortuPIAwq.o(.text+0x57d): undefined reference to `ioerror_'
/tmp/ifortuPIAwq.o(.text+0x5a5): undefined reference to `ioerror_'
/tmp/ifortuPIAwq.o(.text+0x5c5): undefined reference to `ioerror_'
/tmp/ifortuPIAwq.o(.text+0x9a3): more undefined references to `ioerror_' follow
/opt/intel_fc_80/lib/for_main.o: In function `main':
/opt/intel_fc_80/lib/for_main.o(.text+0x1c): undefined reference to `MAIN__'
make: *** [bpch2_mod.o] Error 1

I checked and think that ioerror is not part of the Vaxlib library. Does anyone know what the problem could be?

Thanks, Bryan
0 Kudos
1 Reply
TimP
Honored Contributor III
427 Views
On the face of it, it looks like you left something out. The linker says you didn't provide a main program, and it certainly looks like your application may have had a function named ioerror, or it may be an extension provided by some vendor's Fortran library.
0 Kudos
Reply