You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a C++ developer. I assume enough C and especially C++ developers use libstdc++.so.6. When building a project, which downstream depends on it, I receive the following failure:
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
Hence, it might make sense to add the LD_LIBRARY_PATH?
Full flake.nix:
{description="A Nix-flake-based C/C++ development environment";inputs.nixpkgs.url="https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";outputs={self,nixpkgs}:
letsupportedSystems=["x86_64-linux""aarch64-linux""x86_64-darwin""aarch64-darwin"];forEachSupportedSystem=f: nixpkgs.lib.genAttrssupportedSystems(system: f{pkgs=importnixpkgs{inheritsystem;};});in{devShells=forEachSupportedSystem({pkgs}: {default=pkgs.mkShell.override{}{packages=withpkgs;[clang-toolscmakecodespellconancppcheckdoxygengtestlcovvcpkgvcpkg-tool];# Change, that worked and as far as I understand would not violate the nix-way# https://discourse.nixos.org/t/how-to-solve-libstdc-not-found-in-shell-nix/25458/16LD_LIBRARY_PATH=pkgs.lib.makeLibraryPath[pkgs.stdenv.cc.cc];};});};}
The text was updated successfully, but these errors were encountered:
Not a
C++
developer. I assume enoughC
and especiallyC++
developers uselibstdc++.so.6
. When building a project, which downstream depends on it, I receive the following failure:Hence, it might make sense to add the
LD_LIBRARY_PATH
?Full
flake.nix
:The text was updated successfully, but these errors were encountered: