public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Yubin Ruan <ablacktshirt@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: which object file is fstat64/stat64 located
Date: Tue, 18 Dec 2018 08:57:00 -0000	[thread overview]
Message-ID: <87k1k749pz.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <CAJYFCiMR=qww+8b-E7C5-iwAo+uLVs=DpM3YG+V0tvmihkfOig@mail.gmail.com>	(Yubin Ruan's message of "Tue, 18 Dec 2018 10:32:55 +0800")

* Yubin Ruan:

> On Mon, Dec 17, 2018 at 7:32 PM Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * Yubin Ruan:
>>
>> > I am seeking help here since I got error of "undefined reference to
>> > fstat64/stat64" when linking without libstdc++ in a C++ program. I was
>> > trying to use libcxx, so I added -nodefaultlibs when compiling the
>> > program. To get necessary symbols from libc, I added -lc  (and also
>> > -lm -lgcc_s -lgcc). But I still got the undefined reference error.
>>
>> What's your target?
>
> My target is a C++ program(mysqld) which use fstat/stat and other C++
> standard library functions. Normally libstdc++ is used and everything
> is fine. But I want to switch to libcxx.

With target I meant something like Windows, MacOS, or GNU/Linux, and the
processor architecture.

But for libcxx support, you should ask on a libcxx mailing list, not on
a GNU mailing list.

Thanks,
Florian

      reply	other threads:[~2018-12-18  6:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17  5:06 Yubin Ruan
2018-12-17  5:21 ` Marc Glisse
2018-12-17  7:34   ` Yubin Ruan
2018-12-17 20:51 ` Florian Weimer
2018-12-18  6:42   ` Yubin Ruan
2018-12-18  8:57     ` Florian Weimer [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=87k1k749pz.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=ablacktshirt@gmail.com \
    --cc=gcc-help@gcc.gnu.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).