[cfe-dev] fatal error: 'cstdio' file not found
David Chisnall
theraven at sucs.org
Sat Jul 17 08:23:41 PDT 2010
On 17 Jul 2010, at 16:03, Alexei Svitkine wrote:
> Couldn't it be made to detect the right version by looking at what
> directories exist in /usr/include/c++/ and adding the latest version
> that's found there?
Perhaps the configure script could grab them from GCC by parsing the output from these two ()
echo | `gcc -print-prog-name=cc1` -v
echo | `gcc -print-prog-name=cc1plus` -v
Ignore every line before
#include <...> search starts here:
and after
End of search list.
And you get a list of GCC's search paths (clang -cc1 -v does the same thing, so presumably someone knows about this already...). If you install a new GCC, you'd just need to rerun the configure script.
David
More information about the cfe-dev
mailing list