View topic - Fortran on QNX 6.2.x

Fortran on QNX 6.2.x

anything that doesn't fit to other groups.

Fortran on QNX 6.2.x

Postby derooney » Fri Nov 07, 2003 6:24 pm

We need to cross compile Fortran 77 from a Windows PC to
x86 QNX 6.2.x. Can anyone point me toward a QNX Fortran
cross compiler? Thanks.
New Member
Posts: 1
Joined: Fri Nov 07, 2003 6:21 pm

Postby noc » Sat Nov 08, 2003 2:57 am

QNX 6 doesn't officially have a Fortran compiler.
But you should be able to build your own GNU Fortran compiler g77. Just download the QNX patched GCC source code from:

untar the source and take a look at the build-* scripts in root dir for configuration options. I believe you can just edit "build-nto" and change
--enable-languages=c++ to --enable-languages=c++,f77

Here is a quote from someone:
Eric Klavins wrote:and I got all stages to go through. Make install does not finish, but it does
get to the point where everything is in place to use g77. I needed to do

cd /usr/bin
ln -s ntox86-g77 g77
ln -s ntox86-g77 f77

first. Now I am happily compiling FORTRAN code. You also need libf2c if you
want to link it with C code (which I do). This is available from gnu and
compiles w/o any changes. I think libc and libgcc are required, but linking is
done in the background by g77, I think -- so I don't really know.
Senior Member
Posts: 1634
Joined: Sat Jul 06, 2002 4:34 am

Return to General Programming

Who is online

Users browsing this forum: Google [Bot] and 1 guest