# How to solve libstdc++ not found in shell.nix

**URL:** https://discourse.nixos.org/t/how-to-solve-libstdc-not-found-in-shell-nix/25458
**Category:** Help
**Created:** [February 14, 2023, 11:42am UTC](https://discourse.nixos.org/t/how-to-solve-libstdc-not-found-in-shell-nix/25458 "2023-02-14T11:42:07Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![NobbZ](https://discourse.nixos.org/user_avatar/discourse.nixos.org/nobbz/32/7022_2.png) [@NobbZ](https://discourse.nixos.org/u/NobbZ)
#### Post date: [February 14, 2023, 7:08pm UTC](https://discourse.nixos.org/t/how-to-solve-libstdc-not-found-in-shell-nix/25458/6 "2023-02-14T19:08:50Z")

</div>

Just a word of warning.

There are circumstances under which the shellhooks are not effective.

You should prefer to set envvars via attributes whenever possible, as that is more reliavble.

---

_[View the full topic](https://discourse.nixos.org/t/how-to-solve-libstdc-not-found-in-shell-nix/25458)._
