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

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.

--
Yubin

  reply	other threads:[~2018-12-18  2:33 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 [this message]
2018-12-18  8:57     ` Florian Weimer

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='CAJYFCiMR=qww+8b-E7C5-iwAo+uLVs=DpM3YG+V0tvmihkfOig@mail.gmail.com' \
    --to=ablacktshirt@gmail.com \
    --cc=fweimer@redhat.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).