Stack overflow with stdcall and transfer

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jul 28 23:07:00 GMT 2010


On Wed, Jul 28, 2010 at 11:42:47PM +0100, N.M. Maclaren wrote:
> On Jul 28 2010, Danny Smith wrote:
> >From: "Richard Guenther" <richard.guenther@gmail.com>
> >
> >>How would the compiler know with which flags its runtime was compiled?
> >
> >One way would be to decorate stdcall symbols as per MS Windows convention 
> >so that mismatches could be diagnosed in thye compiler and linker. 
> 
> Yes.  Another, simpler, way is to use a few special names as flags and
> define the symbols to indicate whether or not a particular option was used.

The nice thing about gfortran (and GCC) is that anyone 
can download the source code and "fix" an issue.  Patch
are welcomed.

-- 
Steve



More information about the Fortran mailing list