devim
Posts: 1
Joined: Fri Dec 15, 2017 9:58 am

I cannot find libstdc++fs.a

Fri Dec 15, 2017 10:04 am

Hello,

I've installed libstdc++ and libstdc++-32bit. However, I have only /usr/lib32/libstdc++fs.a, while I'm expecting to have also /usr/lib64/libstdc++fs.a. I can't understand why there is this inconsistency.

I found this issue because I'm trying to compile a 64 bit C++ application that uses -lstdc++fs.a and the compiler says that it doesn't find the library.

User avatar
Justin
Development Team
Posts: 3622
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: I cannot find libstdc++fs.a

Sun Dec 17, 2017 4:00 am

Static .a files are generally stripped out from Solus packages. Is the software able to use dynamic libraries like .so?

sunnyflunk
Development Team
Posts: 3007
Joined: Sun Mar 13, 2016 11:35 pm

Re: I cannot find libstdc++fs.a

Tue Dec 19, 2017 9:54 pm

devim wrote:
Fri Dec 15, 2017 10:04 am
Hello,

I've installed libstdc++ and libstdc++-32bit. However, I have only /usr/lib32/libstdc++fs.a, while I'm expecting to have also /usr/lib64/libstdc++fs.a. I can't understand why there is this inconsistency.

I found this issue because I'm trying to compile a 64 bit C++ application that uses -lstdc++fs.a and the compiler says that it doesn't find the library.

Code: Select all

$ eopkg sf stdc++fs
Searching for stdc++fs
Package libstdc++-32bit has file /usr/lib32/libstdc++fs.a
Package g++ has file /usr/lib64/libstdc++fs.a
If you're compiling, you need to install system.devel

Code: Select all

sudo eopkg install -c system.devel

Return to “Development”