Using Clang instead of GCC: Difference between revisions

imported>Milahu
add section: ld: cannot find -lstdc++
imported>Milahu
revert my last edit: add section: ld: cannot find -lstdc++
Line 93: Line 93:
}
}
</syntaxhighlight>
</syntaxhighlight>
== Troubleshooting ==
=== ld: cannot find -lstdc++ ===
Problem: The C++ standard library (libstdc++.so) is missing
Fix: Replace <code>pkgs.llvmPackages.stdenv</code> with <code>pkgs.llvmPackages.libcxxStdenv</code>


== See also ==
== See also ==