public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc7.3.0 link with -lstdc++fs but can not find
@ 2022-01-12  4:34 何小乐
  2022-01-12  8:28 ` Xi Ruoyao
  0 siblings, 1 reply; 2+ messages in thread
From: 何小乐 @ 2022-01-12  4:34 UTC (permalink / raw)
  To: gcc-help

hello, friends, i compile cpp file using gcc7.3.0 with -lstdc++fs flags but the gcc complained, like below, i request for you help:


bash-5.0# c++  -o oomd oomd.p/src_oomd_Main.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group liboomd.a -Wl,--no-whole-archive -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/kylin/kylin-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/kylin/kylin-hardened-ld -lstdc++fs /usr/lib64/libjsoncpp.so -pthread /usr/lib64/libsystemd.so -Wl,--end-group
/usr/bin/ld: cannot find -lstdc++fs
collect2: error: ld returned 1 exit status
bash-5.0# c++ --version
c++ (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


bash-5.0# uname -a
Linux bogon 4.19.90-24.4.v2101.ky10.aarch64 #1 SMP Mon May 24 14:45:37 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
and i confirm that this env has already installed the below rpm packages by yum tool:
gcc-c++.aarch64
libstdc++.aarch64
libstdc++-devel.aarch64
libstdc++-static.aarch64


and i failed to search for a keyword of 'stdc++fs' in my filesystem by find tool: 
find / -name "*stdc++fs*"
i want to consult you how could i get the libstdc++fs*, thank you for your help!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc7.3.0 link with -lstdc++fs but can not find
  2022-01-12  4:34 gcc7.3.0 link with -lstdc++fs but can not find 何小乐
@ 2022-01-12  8:28 ` Xi Ruoyao
  0 siblings, 0 replies; 2+ messages in thread
From: Xi Ruoyao @ 2022-01-12  8:28 UTC (permalink / raw)
  To: 何小乐, gcc-help

On Wed, 2022-01-12 at 12:34 +0800, 何小乐 via Gcc-help wrote:

> i want to consult you how could i get the libstdc++fs*, thank you for
> your help!

Ask the supporting team of your distro.  The distro maintainers may
split GCC into multiple packages and we have no way to know how they
name them.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-12  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12  4:34 gcc7.3.0 link with -lstdc++fs but can not find 何小乐
2022-01-12  8:28 ` Xi Ruoyao

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).