Re: which object file is fstat64/stat64 located

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 17 Dec 2018, Yubin Ruan wrote:

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.

Note that I never use fstat64/stat64 in my program. I only use fstat/stat.

From the man page[1] it is said that on Linux fstat/stat is a wrapper
around fstat64/stat64. So these two symbols must locate at some object
file I don't know.

Could it be that you are using those -l* flags in the wrong order?

--
Marc Glisse



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux