LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2010, 02:41 PM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 195

Rep: Reputation: 22
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.
 
Old 01-29-2010, 02:55 PM   #2
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 195

Original Poster
Rep: Reputation: 22
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile f77 code using gfortran or g77 GradientDrift Programming 2 11-18-2009 11:18 PM
g77 3x faster than gfortran - why? What can I do? VelocideX Linux - Software 2 05-15-2009 04:12 PM
g77 compiles fortran 77 code; gfortran gives weird errors. Why? VelocideX Programming 5 04-22-2009 03:03 AM
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 07:39 AM
undefined gfortran references when compiling with g77 StudMuffin Linux - Software 4 02-17-2007 07:06 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration