Ubuntu – header files for GCC located

ccompilergcc

I want to manually add some header files like math.h and graphic.h for gcc but don't know where to put them.

Best Answer

First take a look in /usr/include or /usr/local/include.

If you find nothing there, try :

`gcc -print-prog-name=cc1plus` -v

This command asks gcc which C++ preprocessor it is using, and then asks that preprocessor where it looks for includes.

You will get a reliable answer for your specific setup.

Likewise, for the C preprocessor:

`gcc -print-prog-name=cc1` -v
Related Question