From: Mike Frysinger <vapier@gentoo.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gnulib: import getline
Date: Sun, 2 May 2021 10:14:33 -0400 [thread overview]
Message-ID: <YI6zyTEHUO9xVvwB@vapier> (raw)
In-Reply-To: <838s4x8v5u.fsf@gnu.org>
On 02 May 2021 10:14, Eli Zaretskii wrote:
> From: Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org>
> > getline is in POSIX, but not all targets support it. e.g. Windows
> > (mingw) omit it.
>
> Which MinGW? mingw.org's MinGW does have getline and getdelim.
mingw.org doesn't exist anymore, and sf.net/p/mingw hasn't been updated in
almost a decade. we switched to http://mingw-w64.org/ for 64-bit support.
$ cat test.c
#include <stdio.h>
int main() { getline(NULL, NULL, NULL); }
$ i686-w64-mingw32-gcc test.c
test.c: In function ‘main’:
test.c:2:14: warning: implicit declaration of function ‘getline’ [-Wimplicit-function-declaration]
2 | int main() { getline(NULL, NULL, NULL); }
| ^~~~~~~
/usr/libexec/gcc/i686-w64-mingw32/ld: /tmp/ccOlIsIf.o:test.c:(.text+0x26): undefined reference to `getline'
collect2: error: ld returned 1 exit status
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (Gentoo 10.3.0 p1) 10.3.0
$ printf '#include <_mingw_mac.h>\n__MINGW64_VERSION_STR\n' |
i686-w64-mingw32-gcc -E -dD -P - |
tail -n1
"8" "." "0" "." "0"
-mike
next prev parent reply other threads:[~2021-05-02 14:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-01 22:09 Mike Frysinger
2021-05-02 0:39 ` Simon Marchi
2021-05-02 0:46 ` Mike Frysinger
2021-05-02 0:49 ` Simon Marchi
2021-05-02 4:50 ` Mike Frysinger
2021-05-04 15:03 ` Tom Tromey
2021-05-04 17:46 ` Mike Frysinger
2021-05-04 19:19 ` Tom Tromey
2021-05-04 19:49 ` Mike Frysinger
2021-05-04 20:10 ` Tom Tromey
2021-05-04 21:22 ` Mike Frysinger
2021-05-02 7:14 ` Eli Zaretskii
2021-05-02 14:14 ` Mike Frysinger [this message]
2021-05-02 14:48 ` Eli Zaretskii
2021-05-02 15:12 ` Mike Frysinger
2021-05-02 15:24 ` Eli Zaretskii
2021-05-02 15:47 ` Mike Frysinger
2021-05-02 16:06 ` Eli Zaretskii
2021-05-02 16:12 ` Mike Frysinger
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=YI6zyTEHUO9xVvwB@vapier \
--to=vapier@gentoo.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/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).