Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Fortran Programming Language

linking to cernlib (mathlib) with gfortran


hello, does anybody know how i can link my programs to the cernlib
mathlib with the gfortran or g95 compiler? are there any precompiled
binaries which i can use? i don't know how to compile the sources from
http://cernlib.web.cern.ch/cernlib/version.html .
thanks for your help
On 23 May 2007 06:27:50 -0700,
 Edelstat@googlemail.com <Edelstat@googlemail.com>
 wrote in <1179926869.906691.137@m36g2000hse.googlegroups.com>:

> hello, does anybody know how i can link my programs to the cernlib
> mathlib with the gfortran or g95 compiler? are there any precompiled
> binaries which i can use? i don't know how to compile the sources from
> http://cernlib.web.cern.ch/cernlib/version.html .
> thanks for your help

        I would imagine you can use the PC Linux Cern slc4_ia32_gcc4 files;
the README says they are compiled with gfortran/gcc4.  What OS do you use?
(SLC4 is 2.6 kernel; SLC3 is 2.4).

--
Ivan Reid, School of Engineering & Design, _____________  CMS Collaboration,
Brunel University.    Ivan.Reid@[brunel.ac.uk|cern.ch]    Room 40-1-B12, CERN
        KotPT -- "for stupidity above and beyond the call of duty".

On 23 Mai, 16:24, "Dr Ivan D. Reid" <Ivan.R@brunel.ac.uk> wrote:

> What OS do you use?

Sorry, I totally forgot to write that I want to use ist on a Windows
XP system.
On 23 May 2007 07:51:52 -0700, Edelstat@googlemail.com
<Edelstat@googlemail.com>
 wrote in <1179931912.465011.35@p77g2000hsh.googlegroups.com>:

> On 23 Mai, 16:24, "Dr Ivan D. Reid" <Ivan.R@brunel.ac.uk> wrote:
>> What OS do you use?
> Sorry, I totally forgot to write that I want to use ist on a Windows
> XP system.

        Ah, yes, that is a bit more difficult.  Running native, MinGW or
cygwin?  If you've got the gcc4 package under cygwin I'd imagine that the
sources of the package I mentioned earlier should compile.  I'd _expect_
the same to be true of minGW but I don't use it.  Native Windows is something
I'd rather not get into.

        As Mike mentioned the other day, CERNLIB is still f77, and hasn't
been upgraded to f9x at all.  This means that f77 compilers will compile
it, not that f95 compilers won't!

        I've got cygwin gcc4.2.0 binaries here -- I'll have a quick look at
compiling.

--
Ivan Reid, School of Engineering & Design, _____________  CMS Collaboration,
Brunel University.    Ivan.Reid@[brunel.ac.uk|cern.ch]    Room 40-1-B12, CERN
        KotPT -- "for stupidity above and beyond the call of duty".

On Wed, 23 May 2007 17:39:37 +0000 (UTC), Dr Ivan D. Reid
<Ivan.R@brunel.ac.uk>
 wrote in <slrnf58v2p.338.Ivan.R@loki.brunel.ac.uk>:

>    I've got cygwin gcc4.2.0 binaries here -- I'll have a quick look at
> compiling.

        After faffing around for an hour, realising the 2006 sources were
incomplete and replacing them with the 2005 sources, I found it difficult
to work out how to tell Imake to build for cygwin.  Then I found this,
which might help but does also point to ready-compiled libraries (tho'
probably not gor gfortran):
http://zyao.home.cern.ch/zyao/cernlib.html

        I'll investigate further later.

--
Ivan Reid, School of Engineering & Design, _____________  CMS Collaboration,
Brunel University.    Ivan.Reid@[brunel.ac.uk|cern.ch]    Room 40-1-B12, CERN
        KotPT -- "for stupidity above and beyond the call of duty".

On 23 Mai, 20:46, "Dr Ivan D. Reid" <Ivan.R@brunel.ac.uk> wrote:

The precompiled cernlib from the adress mentioned above works fine
with g95 and gfortran.
My problem is solved with this.
Thank you very much!
On 23 May 2007 15:06:06 -0700,
 Edelstat@googlemail.com <Edelstat@googlemail.com>
 wrote in <1179957966.621440.89@q69g2000hsb.googlegroups.com>:

> On 23 Mai, 20:46, "Dr Ivan D. Reid" <Ivan.R@brunel.ac.uk> wrote:
>> http://zyao.home.cern.ch/zyao/cernlib.html
> The precompiled cernlib from the adress mentioned above works fine
> with g95 and gfortran.
> My problem is solved with this.
> Thank you very much!

        Great!  I'll still keep it in mind as a project tho', as my gfortran
is the AMD 64-bit version.

        Depending on what you're doing, you almost certainly don't need
_all_ the libraries -- CERNLIB contains a vast number of disparate utilities.

--
Ivan Reid, School of Engineering & Design, _____________  CMS Collaboration,
Brunel University.    Ivan.Reid@[brunel.ac.uk|cern.ch]    Room 40-1-B12, CERN
        KotPT -- "for stupidity above and beyond the call of duty".

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc