From: rep.dot.nop@gmail.com
To: sgk@troutmask.apl.washington.edu,
Steve Kargl <sgk@troutmask.apl.washington.edu>,
Ken Woolridge <kwwoolridge@hotmail.com>
Cc: "fortran@gcc.gnu.org" <fortran@gcc.gnu.org>
Subject: Re: Can't link assembly routines
Date: Fri, 15 Mar 2024 00:47:14 +0100 [thread overview]
Message-ID: <708BC212-1898-4B96-A8F9-7F0B1C92B81C@gmail.com> (raw)
In-Reply-To: <ZfHzz_bahyO87X7z@troutmask.apl.washington.edu>
On 13 March 2024 19:43:27 CET, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>On Wed, Mar 13, 2024 at 12:05:16PM +0000, Ken Woolridge wrote:
>>
>> When I attempt to link my test program (FF.F90) which calls UPPER_CASE (an assembly routine) I get the following error:
>>
>> C:/Program Files/GCC/bin/../lib/gcc/i686-pc-mingw32/13.2.0/../../../../i686-pc-mingw32/bin/ld.exe: FF.OBJ:FF.F90:(.text+0x10c): undefined reference to `upper_case_'
>> collect2.exe: error: ld returned 1 exit status
>
>Well, does your archive contain a symbol name upper_case_?
>
See -funderscoring (sp)?
I think nowadays, you would use ISO_C_BINDING to describe the interface, though. I'm pretty sure that is documented somewhere..
prev parent reply other threads:[~2024-03-14 23:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 12:05 Ken Woolridge
2024-03-13 18:43 ` Steve Kargl
2024-03-14 23:47 ` rep.dot.nop [this message]
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=708BC212-1898-4B96-A8F9-7F0B1C92B81C@gmail.com \
--to=rep.dot.nop@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=kwwoolridge@hotmail.com \
--cc=sgk@troutmask.apl.washington.edu \
/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).