This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: symbol names are not created with stdcall syntax: MINGW, (GCC) 4.3.0 20061021
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "vwt at gmx dot net" <vwt at gmx dot net>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 9 Mar 2007 16:28:02 +0100
- Subject: Re: symbol names are not created with stdcall syntax: MINGW, (GCC) 4.3.0 20061021
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kEedf+zvZRALhyEHP2jWqiz9bqXFNNbDLj380agFP948g+8O/pVrsIdEMbtHfudCPPZ4hWNES/1CTKO2Iry+v73YhW3JWY+VMjNkpauM8soZZqMSncpcDDATYOuuVwdhmtf3/uedGE4CwkJo17mJDKAYslFfqagwWF30vTqNd4E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aMrRSpRzgWbeOcPzwXQUXomMCzXwpArFu2Dk98246CFo8AQDMFpVoDVeLA+xkFEvH0WFrSuiU2IkoWgAHU+qmrirGlnNPRgTh4iBf5YkaaMJaNxBtODg7oG/DSnDIZYrnk0BucSNldJZd6SRtuCYFB6InS2/TQpltTk4YPGQ1tU=
- References: <20070309133336.275890@gmx.net>
I am trying to compile f90 code into objects that generate the symbol
names in stdcall syntax, i.e. _symname@NN We need the stdcall decorations
since we build a dll that is called from an app that needs to do all calls
with stdcall.
As was already noted, there are two different problems here: the
calling convention, and the name decoration.
From what I read, I don't know what you think is gfortran-specific
about your problem. If you can manage to get it done for C code, but
can't do it for Fortran code, then please post an example of working C
code and options to the list. If it doesn't work either for C code, I
suggest posting to the gcc-help@gcc.gnu.org mailing-list, or asking on
the mingw list.
PS: about the fact that assembler and linker options are shown by
--target-help, I filed a PR for that.
On a side note: Is there an archive for previous gfortran mingw builds?
If you're talking about the mingw binaries available on
quatramaran.ens.fr (and linked from the GFortran wiki), then the
answer is: it depends. There sometimes are older binaries around, but
I did some cleanup recently and removed them :)