This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
f2c with mpif90 using gfortran44
- From: "Jacob Anderson" <jwa at beyond-ordinary dot com>
- To: <fortran at gcc dot gnu dot org>
- Date: Mon, 3 Oct 2011 13:55:00 -0700
- Subject: f2c with mpif90 using gfortran44
I am getting undefined argc symbols in my fortran program that also has
c/c++ mixed in. I am using gfortran44, gcc44, and g++44 for compiling with
MPI support (mvapich2-1.7rc2). This is a CentOS 5.7 (5.6 updated to 5.7
symbols) machine on x64.
My config and output:
> mpicc --version
gcc44 (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
Copyright (C) 2010 Free Software Foundation, Inc.
> mpif90 --version
GNU Fortran (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
Copyright (C) 2010 Free Software Foundation, Inc.
Source compile options:
> mpif90 -fcray-pointer -std=legacy -ff2c
Link options:
> mpif90 -lgfortranbegin -lgfortran -lm
-L/usr/lib/gcc/x86_64-redhat-linux6E/4.4.4
-L/usr/lib/gcc/x86_64-redhat-linux6E/4.4.4/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux6E/4.4.4/../../.. -lm
-lgcc_s -lstdc++ -lpthread ... objects .... -L/usr/lib64 -lX11
-L/usr/mpi/gcc/mvapich2-1.7rc2/lib -lmpich -lfmpich -lmpl
foo.a(ttyint.o): In function `ttyint_':
ttyint.F:(.text+0x1d): undefined reference to `signal_'
foo.a(getexm.o): In function `getexm_':
getexm.F:(.text+0x71): undefined reference to `iargc_'
I do not have an libf2c.a for linking. Any help?
=====================================================================
______ _____ | Beyond Ordinary Software Solutions
(____ \ / ___ \ | Insurance * Entertainment * Defense * Government
____) ) | | || -------------------------------------------------
| __ (| | | || Jacob Anderson President
| |__) ) |___| || jwa@beyond-ordinary.com | www.beyond-ordinary.com
|______/ \_____/ | 1-866-461-5253
| San Diego + California + USA
---------------------------------------------------------------------
.NET + Java + Windows + Unix + HPC + AI + 3D + Cryptography + Advice
=====================================================================