|
From: Andrew G. <And...@np...> - 2003-01-03 15:25:36
|
Trying to link to a DLL from Fortran program uisng g77 compiler. Works nicely from C, but from Fortran, link to function X01AAF (for example) gives undefined reference to X01AAF_ Tried --no-underscoring option, but this did not cure the problem. How can I stop g77 adding underscores to external symbols? Generated import library for DLL using dlltool. The .def file is as follows: EXPORTS X01AAF _X01AAF _X01AAF@4 ------------------------------------------------------------------- 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. ------------------------------------------------------------------- |