b***@aol.com
2005-03-01 15:24:18 UTC
I am attempting to port several large legacy Fortran apps to Mac OS X.
The applications are perhaps 95% Fortran 77 with a few low level ANSI C
functions. The Mac is running Panther 10.3.8 with X11 installed and
with Xcode 1.5 (gcc 3.3) installed.
I installed g77 version 3.4.2 from a prebuilt binary but I do not think
that g77 installation works well with the Apple's customized gcc
installation. Each compiler seems to work well enough separately but I
can not "Make" an app that combines both .f and .c source code. A Make
calling "g77 foo1.f foo2.c" produces a series of "Non-existant
directory" warnings. There are also problems with unknown C library
functions as well as inconsistant underscore conventions.
As someone new to the GNU compiler world, should I be able to compile
and link applications built from different languages? Most commercial
products have no trouble with this but can the GCC package do it ? If
so, are there any conventions that need to be followed (other than the
obvious data type conventions) such as pragmas or compiler options?
Should I expect better results if I had built g77 instead of using a
prebuilt binary?
Thanks in advance...
The applications are perhaps 95% Fortran 77 with a few low level ANSI C
functions. The Mac is running Panther 10.3.8 with X11 installed and
with Xcode 1.5 (gcc 3.3) installed.
I installed g77 version 3.4.2 from a prebuilt binary but I do not think
that g77 installation works well with the Apple's customized gcc
installation. Each compiler seems to work well enough separately but I
can not "Make" an app that combines both .f and .c source code. A Make
calling "g77 foo1.f foo2.c" produces a series of "Non-existant
directory" warnings. There are also problems with unknown C library
functions as well as inconsistant underscore conventions.
As someone new to the GNU compiler world, should I be able to compile
and link applications built from different languages? Most commercial
products have no trouble with this but can the GCC package do it ? If
so, are there any conventions that need to be followed (other than the
obvious data type conventions) such as pragmas or compiler options?
Should I expect better results if I had built g77 instead of using a
prebuilt binary?
Thanks in advance...