From: Glenn H Sembroski <sembrosk@physics.purdue.edu>
To: gcc-help@gcc.gnu.org
Subject: Accessing C++ function with Mixed Upper/Lower case name from F90 subroutine
Date: Tue, 30 Mar 2010 17:50:00 -0000 [thread overview]
Message-ID: <4BB2158F.7050100@physics.purdue.edu> (raw)
Hi,
I have a problem trying to prepare a large simulation package, using
mixed F90 and C++ routines, to compile and build under GCC (g++, and
gfortran). The problem is I have a C++ function: Gauss() which is
called from an F90 routine:
x=gauss()
This package was made able to build under the Intel fortran compiler by
adding to the fortran file the Intel compile directive:
!DEC$ ATTRIBUTES ALIAS:'Gauss' :: gauss
I attempted to build this program using GCC where for F90 code the
gfortran compiler option -fno-underscoring was used.
Presently my fortran routine won't build. It gets the error:
485: undefined reference to `gauss'
So, my question is, is there a way in GCC to enable the linker to find
the C++ 'Gauss' method?
Thanks,
Dr. Glenn Sembroski
Physics Dept.,Purdue University
sembrosk@purdue.edu
next reply other threads:[~2010-03-30 15:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 17:50 Glenn H Sembroski [this message]
2010-03-30 23:58 ` Harald Servat
2010-03-31 11:33 ` Toon Moene
2010-03-31 12:51 ` Tobias Burnus
2010-03-31 11:29 ` Axel Freyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB2158F.7050100@physics.purdue.edu \
--to=sembrosk@physics.purdue.edu \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).