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

undefined reference [urgent problem!]

anoosh3000
Beginner
889 Views

Dears,

when i try to compile my fortran 90 program using ifort, it replies with error:

/usr/local/pgplot/libpgplot.so: undefined reference to `e_rsfe'
/usr/local/pgplot/libpgplot.so: undefined reference to `e_wsfi'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_stop'
/usr/local/pgplot/libpgplot.so: undefined reference to `G77_getenv_0'
/usr/local/pgplot/libpgplot.so: undefined reference to `f_clos'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_wsfe'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_rsue'
/usr/local/pgplot/libpgplot.so: undefined reference to `f_inqu'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_cmp'
/usr/local/pgplot/libpgplot.so: undefined reference to `e_wsfe'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_cat'
/usr/local/pgplot/libpgplot.so: undefined reference to `e_rsue'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_copy'
/usr/local/pgplot/libpgplot.so: undefined reference to `do_fio'
/usr/local/pgplot/libpgplot.so: undefined reference to `f_open'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_rsfe'
/usr/local/pgplot/libpgplot.so: undefined reference to `s_wsfi'
/usr/local/pgplot/libpgplot.so: undefined reference to `do_uio'
/usr/local/pgplot/libpgplot.so: undefined reference to `i_indx'

libpgplot is a plotting sofware.

where can i get libraries including these functions?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
889 Views

Your library was compiled by g77 and must be used with g77 only. In general, objects and libraries built with one Fortran compiler can't be used with a different Fortran compiler.

If sources for that library are available, you will need to recompile them with Intel Fortran.

0 Kudos
Ron_Green
Moderator
889 Views

We have a write up on how to build PGPLOT with Intel compilers:

http://www.intel.com/support/performancetools/sb/cs-027810.htm

I helped write this about 18 months ago for the 10.0 compiler, but it should still work with 11.0 or 10.1. Let me know if you find any errors. And also let me know if it was helpful.

ron

0 Kudos
Reply