Re: Beginer needing help



Steven G. Kargl wrote:
Steven G. Kargl wrote:
In article <e5hdoq$lb5$1@xxxxxxxxxxxxxxx>,
vexx <vexxmiocMAKNI@xxxxxxxxx> writes:

but the problem is i think now with library. when i type in command prompt: gfortran new.f90 -o new.exe -lmathlib it says cannot find -mathlib. so does that mean that my compiler does not have a CERN library ad if that's the problem how do i get it?

This is pilot error, and has nothing to do with the compiler.
You didn't indicated the OS, so I'll assume some form of UNIX.
gfortran will take -lmathlib and look for a file named libmathlib.a
(or perhaps a shared library). This file must exist in the
library directory search path. So, where does this library live,
and do you have the correct name?


In article <e5hdoq$lb5$1@xxxxxxxxxxxxxxx>,
vexx <vexxmiocMAKNI@xxxxxxxxx> writes:

but the problem is i think now with library. when i type in command prompt: gfortran new.f90 -o new.exe -lmathlib it says cannot find -mathlib. so does that mean that my compiler does not have a CERN library ad if that's the problem how do i get it?

This is pilot error, and has nothing to do with the compiler.
You didn't indicated the OS, so I'll assume some form of UNIX.
gfortran will take -lmathlib and look for a file named libmathlib.a
(or perhaps a shared library). This file must exist in the
library directory search path. So, where does this library live,
and do you have the correct name?

its winxp
.



Relevant Pages

  • Re: Beginer needing help
    ... vexx writes: ... prompt: gfortran new.f90 -o new.exe -lmathlib it says cannot find -mathlib. ... and has nothing to do with the compiler. ...
    (comp.lang.fortran)
  • Re: Beginer needing help
    ... vexx writes: ... and has nothing to do with the compiler. ... gfortran will take -lmathlib and look for a file named libmathlib.a ... DELTA .AND. ...
    (comp.lang.fortran)
  • Re: Polyhedron 2005 benchmark results
    ... Steven G. Kargl wrote: ... instance, how much of a difference does -static make here, or the various "fast-math" options? ... audited the code for potential problems. ... For gfortran, at least, yes. ...
    (comp.lang.fortran)
  • Re: programming GUIs
    ... kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote: ... > gfc4x is bleeding edge gfortran. ... > of gfortran that will appear in GCC 4.1. ... This is on MacOSX 10.3.9, and I am using the fink-managed version of ...
    (comp.lang.fortran)
  • Re: G95 is OK to *learn* Fortran?
    ... > Steven G. Kargl wrote: ... > requisite permissions to use rpm's? ... I normally build gfortran after grabbing source with anoncvs. ... then I suggest using g95. ...
    (comp.lang.fortran)