r/linux_programming • u/quaderrordemonstand • Aug 20 '24
Builds break on every new version of GCC
Not because of GCC itself but because my build includes paths to GCC headers. Every time a new version of GCC appears, I have to manually update the header path in every project. The same also happens where clang is searching for headers for completion, symbol lookup and so on.
For example, today GCC changed from 14.1.1 to 14.2.1, and the path to its headers changed with it. Now all my builds fail unless I change header paths in several places. Is there some way to not require this? Can I get things to figure out where the current GCC headers are in an automated way?
6
u/aioeu Aug 20 '24
That should not be necessary. They are always in the compiler's standard search path.
2
u/gordonmessmer Aug 20 '24
Can you show us where / how you're specifying that path? (And maybe the error you get if you don't specify a leading path?)