From: Tobias Burnus <burnus@net-b.de>
To: Toon Moene <toon@moene.org>
Cc: Harald Servat <harald.servat@bsc.es>,
Glenn H Sembroski <sembrosk@physics.purdue.edu>,
gcc-help@gcc.gnu.org, gfortran <fortran@gcc.gnu.org>
Subject: Re: Accessing C++ function with Mixed Upper/Lower case name from F90 subroutine
Date: Wed, 31 Mar 2010 12:51:00 -0000 [thread overview]
Message-ID: <4BB239CD.3050404@net-b.de> (raw)
In-Reply-To: <4BB2368B.6020903@moene.org>
Hi all,
Toon Moene wrote:
> The Standard (as of Fortran 2003, supported by GNU Fortran and ifort)
> way to do this is to add the following to your Fortran code:
>
> $ cat a.f90
> interface gauss
> function gauss() bind(c, name="Gauss")
> use, intrinsic :: iso_c_binding
> real(c_float) :: gauss
See also:
http://gcc.gnu.org/onlinedocs/gfortran/Mixed_002dLanguage-Programming.html
Tobias
next prev parent reply other threads:[~2010-03-30 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 17:50 Glenn H Sembroski
2010-03-30 23:58 ` Harald Servat
2010-03-31 11:33 ` Toon Moene
2010-03-31 12:51 ` Tobias Burnus [this message]
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=4BB239CD.3050404@net-b.de \
--to=burnus@net-b.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-help@gcc.gnu.org \
--cc=harald.servat@bsc.es \
--cc=sembrosk@physics.purdue.edu \
--cc=toon@moene.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).