rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.79k stars 314 forks source link

add -lstdc++fs for gcc support #391

Closed huixie90 closed 3 years ago

huixie90 commented 3 years ago

Describe the bug The project doesn't build with gcc8.3 due to a linker error

/usr/bin/ld: Path.cc:(.text+0x119e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'

By default gcc doesn't link to standard library

To Reproduce Steps to reproduce the behavior: build the project with gcc 8.3

Expected behavior The project should build

Environment:

rizsotto commented 3 years ago

https://github.com/rizsotto/Bear/issues/305#issuecomment-749002592 has some hints how to compile with older gcc.