RE: undefined reference

RE: undefined reference

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today