LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-30-2005, 08:35 AM   #1
ztdep
Member
 
Registered: Jul 2005
Posts: 219

Rep: Reputation: 31
how to use a library in f77 or itel fortran compiler


hello :
i have download a package for the matrix computation named SPARSKIT2,
i have compiled it successfully and it generate a lib named libskit.a .
i want to use the function in the package SPARSKIT2, which command should i use for f77!

my system is redhat9.0
i use a fortran 77 language to write the program!

regards
 
Old 12-31-2005, 03:55 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Something like this should work:

Code:
  g77 -g -Wall -pedantic -ff77 -c MYPROG.f -LPATH_TO_SPARSKIT -lskit
Substitute your actual Fortran source files for "MYPROG.F", substitute your actual path (e.g. "-L/usr/local/lib") for "-LPATH_TO_SPARSKIT".

'Hope that helps .. PSM
 
  


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
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
how to compile fortran library and wrap it in C/C++ elvislu Programming 1 05-18-2005 01:19 AM
fortran compiler and guide? spacetrooper Programming 4 03-23-2005 06:48 PM
Fortran Compiler in SuSE? Krater47 Linux - Software 4 09-09-2004 12:10 AM
Fortran Compiler bob10a Linux - Software 14 07-19-2003 04:34 AM

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

All times are GMT -5. The time now is 03:38 PM.

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