Where Is My Gcc Path Linux?
Contents

You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.

Where is gcc include paths?

If you’re asking how to find out the default include path for your GCC installation, you can ask GCC to preprocess an empty file in verbose mode: $ gcc -v -x c -E /dev/null.

What is a #include preprocessor?

The #include directive tells the C preprocessor to include the contents of the file specified in the input stream to the compiler and then continue with the rest of the original file. For example, the header file, file.h contains the following: char *func (void);

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest