which object file is fstat64/stat64 located
Florian Weimer
fweimer@redhat.com
Tue Dec 18 08:57:00 GMT 2018
* 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
More information about the Gcc-help
mailing list