Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using g95 with the NAG Library

13 views
Skip to first unread message

Beliavsky

unread,
Jul 1, 2009, 9:19:43 AM7/1/09
to
Quoting from NAGNews
Volume 81 - June/July 2009

'Question: "Can I use the g95 compiler with the NAG Library?"

Answer: Good program developers know that it's always wise to test
their code using more than one compiler, for the simple reason that
different compilers can find different problems. Code that one
compiler accepts without a murmur may cause another compiler to
complain about a possible error.

At NAG we try to make our library products work with as many compiler
and operating system combinations as possible. It takes more work than
you might imagine to make this happen, and sometimes we are not able
to provide customized libraries for all the compilers that our users
would like.

A case in point is the g95 Fortran compiler. g95 is a compiler which
runs on various operating systems, and in particular is often used
under Linux.

We do not have a version of the NAG Library specifically for use with
g95, but it turns out that it is possible, without too much effort, to
link to the gfortran version of the NAG Library. If you already have a
gfortran version of the NAG Library, and would like to try using it
with g95, you can find detailed instructions on how to do it here:

http://www.nag.com/doc/inun/fl22/l6adfl/postrelease.html (64-bit)
http://www.nag.com/doc/inun/fl22/l3adfl/postrelease.html (32-bit)

Notice that you do need to have the gfortran run-time library
(libgfortran) installed on your machine even though you are compiling
with g95 - that's because the NAG Library has dependencies on the run-
time library that need to be satisfied at link time. Answered by Mick
Pont, Senior Technical Consultant at NAG.'

0 new messages