linking problem


I am compiling a code with pgf90 6.1 on a linux box with Opteron processor and I got lots of undefined reference to for_cpystr, for_write_seq_lis_xmit and other for_* messages. I have checked all the libraries under /usr/local/pgi/linux86/6.1/lib but could not find those undefined symbols. What am I missing? Thank you so much for your help.


Hi David,

I think these references are from the Intel Fortran library ‘libifcore.a’ . Adding this library to the link line should take care of the problem.

Hope this helps,