LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiled pgplot with g77, but it thinks I used gfortran?? (https://www.linuxquestions.org/questions/linux-newbie-8/compiled-pgplot-with-g77-but-it-thinks-i-used-gfortran-785660/)

deathsfriend99 01-29-2010 01:41 PM

Compiled pgplot with g77, but it thinks I used gfortran??
 
I installed pgplot with the linux g77_gcc command, but when I try to compile a program that uses pgplot, it complains:

Code:

g77 -O -Wall -o cpgim cpgim.o ../UA/ua -L /users/local/pgplot -lcpgplot -lpgplot -L /usr/X11R6/lib -lX11
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_concat_string'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_ioparm'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_write_done'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_integer'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_read'
/usr/local/lib/libpgplot.so: undefined reference to `png_set_PLTE'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_inquire'
/usr/local/lib/libpgplot.so: undefined reference to `png_init_io'
/usr/local/lib/libpgplot.so: undefined reference to `png_set_text'
/usr/local/lib/libpgplot.so: undefined reference to `png_set_tRNS'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_stop_numeric'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_pow_i4_i4'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_write'
/usr/local/lib/libpgplot.so: undefined reference to `png_create_info_struct'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_getenv'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_read_done'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_copy_string'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_compare_string'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_string_index'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_close'
/usr/local/lib/libpgplot.so: undefined reference to `png_write_info'
/usr/local/lib/libpgplot.so: undefined reference to `png_create_write_struct'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_internal_malloc'
/usr/local/lib/libpgplot.so: undefined reference to `png_set_IHDR'
/usr/local/lib/libpgplot.so: undefined reference to `png_write_end'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_real'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_open'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_character'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_line'
/usr/local/lib/libpgplot.so: undefined reference to `png_write_row'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_internal_free'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_pow_r4_i4'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_filename'
/usr/local/lib/libpgplot.so: undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make[1]: *** [cpgim] Error 1
make[1]: Leaving directory `/usr/local/makee/Misc'
make: *** [linux] Error 2

I'm not sure what to make of this. It calls g77, but complains about gfortran.

deathsfriend99 01-29-2010 01:55 PM

I hate it when you figure it out right after you post =)

I compiled pgplot in /usr/local/pgplot, but there was an old version of libpgplot.so in /usr/local/lib/

I copied the one compiled with f77 to /usr/local/lib and the program compiled just fine.


All times are GMT -5. The time now is 07:35 AM.