Add Library to Fortran - Learn How to Launch Free Libraries

  • Context: Fortran 
  • Thread starter Thread starter astroastro
  • Start date Start date
  • Tags Tags
    Fortran
Click For Summary

Discussion Overview

The discussion centers around the challenges faced by a newcomer to Fortran in using the FGSL library, including how to run it and launch free libraries in Fortran. Participants explore the nature of libraries, the specific requirements for using FGSL, and seek alternatives that may be easier to use.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses confusion about how to run FGSL and seeks an outline for launching free libraries in Fortran.
  • Another participant clarifies that FGSL is not run like a conventional application but is a library that must be linked to user-written routines.
  • A participant mentions difficulty understanding the README file, particularly regarding the export commands for the Fortran compiler and flags.
  • There is a request for recommendations for easier scientific libraries for Fortran.
  • Questions arise about the participant's experience with Fortran libraries and the specific Fortran compiler being used.
  • Another participant notes that the instructions may be tailored for GNU Fortran compilers on Unix or Linux systems, which may not apply to Windows users.
  • A later reply suggests that creating a whole library may be unnecessary for the participant's current level of experience.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and experience with Fortran and FGSL, indicating that there is no consensus on how to proceed with using the library effectively. Multiple viewpoints regarding the clarity of instructions and the suitability of FGSL for beginners are present.

Contextual Notes

Participants highlight limitations in the clarity of instructions provided for using FGSL, particularly for users on different operating systems. There is also mention of missing files and modifications needed for proper usage.

Who May Find This Useful

Newcomers to Fortran, users seeking to understand library integration in Fortran, and those looking for alternative scientific libraries may find this discussion relevant.

astroastro
Messages
5
Reaction score
0
Hi I'm completely new to fortran I've downloaded FGSL and I don't know how to run it and also I don't How should I launch the free libraries in fortran,can give me an outline?
 
Technology news on Phys.org
astroastro said:
Hi I'm completely new to fortran I've downloaded FGSL and I don't know how to run it and also I don't How should I launch the free libraries in fortran,can give me an outline?
You don't "run" FGSL in the conventional sense, like you execute an application.

A library is a collection of compiled code which can be linked to other routines written and compiled by the user to make a new program.

Have you read the README file at the following link?:

http://www.lrz.de/services/software/mathematik/gsl/fortran/
 
SteamKing said:
You don't "run" FGSL in the conventional sense, like you execute an application.

A library is a collection of compiled code which can be linked to other routines written and compiled by the user to make a new program.

Have you read the README file at the following link?:

http://www.lrz.de/services/software/mathematik/gsl/fortran/
yes but It wasn't so meaningful to me ,
for example it said : ...
export FC=<fortran compiler command>
export FCFLAGS=<additional Fortran flags>...
I couldn't find these files in the FGSL file where are they?
and I also it need so many modification and extra files which I don't have them :(
Do you know any scientific library which is easier to use for fortran?
 
astroastro said:
yes but It wasn't so meaningful to me ,
for example it said : ...
export FC=<fortran compiler command>
export FCFLAGS=<additional Fortran flags>...
I couldn't find these files in the FGSL file where are they?
and I also it need so many modification and extra files which I don't have them :(
Do you know any scientific library which is easier to use for fortran?

How much experience do you have using libraries with Fortran? What Fortran compiler are you using to build the FGSL library?
 
SteamKing said:
What Fortran compiler are you using to build the FGSL library?

And which operating system? Those instructions look like they're for one of the GNU Fortran compilers (g77 or gfortran) on a Unix- or Linux-based computer.
 
SteamKing said:
How much experience do you have using libraries with Fortran? What Fortran compiler are you using to build the FGSL library?
actually none I just started learning fortran about 3 weeks
 
jtbell said:
And which operating system? Those instructions look like they're for one of the GNU Fortran compilers (g77 or gfortran) on a Unix- or Linux-based computer.
I use windows 7 I couldn't find any other instruction in the site.I had thought about what you are saying .instruction wasn't really clear :D
 
Well, exactly which routines from FGSL do you need in your program?

Since the sources are available, perhaps making a whole library at this point would be unnecessary, until you have acquired more experience with Fortran.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K