LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2013, 12:41 PM   #1
alexus88
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Having problems compiling a fortran program which uses libplot. (linuxmint)


So, the title really describes it all. I would appreciate if someone could help me decipher what it is that I am doing wrong. I tried reinstalling and updating both gfortran and libplot, but I still cannot produce a result.


Any and all help is greatly appreciated. Thanks


----Below is what I type into the terminal

Code:
gfortran -o example orbits.f -L/usr/local/pgplot -lpgplot
----Below is what the terminal responds with

Code:
/Users/alex1257/prvs/src/dgaussj.f:22.72:
    Included at orbits.f:581:

                pause 'singular matrix in gaussj'                       
                                                                        1
Warning: Deleted feature: PAUSE statement at (1)
/Users/alex1257/prvs/src/dgaussj.f:42.72:
    Included at orbits.f:581:

        if (a(icol,icol).eq.0.d0) pause 'singular matrix in gaussj'     
                                                                        1
Warning: Deleted feature: PAUSE statement at (1)
damoyr.f:10.22:
    Included at orbits.f:583:

     +  3HOCT,3HNOV,3HDEC/                                              
                      1
Warning: Extension: Hollerith constant at (1)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpgplot.so when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpgplot.a when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpgplot.so when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libpgplot.a when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../libpgplot.so when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../libpgplot.a when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/libpgplot.so when searching for -lpgplot
/usr/bin/ld: skipping incompatible /usr/lib/libpgplot.a when searching for -lpgplot
/usr/bin/ld: cannot find -lpgplot
collect2: error: ld returned 1 exit status

Last edited by colucix; 03-23-2013 at 01:10 PM. Reason: Added CODE tags
 
Old 03-23-2013, 01:07 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
/usr/bin/ld: cannot find -lpgplot
install libpgplot ( pgplot)

you used
Quote:
gfortran -o example orbits.f -L/usr/local/pgplot -lpgplot
so is it there ? in /usr/local/pgplot ?
or is it in
/usr/local/lib ( where it should be , if using /usr/local)

also is this new FORTRAN ? or an older bit of code like fortran 77
Though 77 should have .f77 on the end of the code

Last edited by John VV; 03-23-2013 at 01:08 PM.
 
Old 03-23-2013, 01:12 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



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
Problems compiling a program mtb Fedora 4 07-24-2008 06:18 PM
Newbie having problems compiling a C program NRC Linux - Newbie 2 10-24-2007 09:30 AM
problems compiling a fortran program on emacs Vassos Linux - Newbie 2 08-04-2007 05:37 AM
Compiling Fortran program by g77 akillam Linux - Software 1 10-16-2006 05:02 AM
Problems compiling C program Boba Programming 3 08-28-2004 06:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:15 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
Open Source Consulting | Domain Registration