This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking Windowsx DLL to g77 (MinGW)
- From: Andrew Gregory <Andrew dot Gregory at npl dot co dot uk>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 2 Jan 2003 19:07:54 -0000
- Subject: Linking Windowsx DLL to g77 (MinGW)
Trying to link to function (e.g. X01AAF) in a dll from which I've
generated an import libary using dlltool.
Works perfectly from C - but if I link from a Fortran program I find
that underscores are appended to symbols. So get error: undefined
reference to `x01aaf_'
How can I stop Fortran adding these underscores, or alternatively
generate an import library with appended underscores?
Andrew.
-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.
NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.
NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Teddington, Middlesex, United Kingdom TW11 0LW.
-------------------------------------------------------------------