scdmb
scdmb

Reputation: 15621

G++ default search path

Where can be found default settings for search path for headers in Ubuntu 11.04? This is for g++.

Upvotes: 3

Views: 3720

Answers (3)

malkia
malkia

Reputation: 1387

gcc also recognizes -isysroot where you specify the root of your header and other files

http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#Directory-Options

Upvotes: 1

Dan
Dan

Reputation: 12675

From here:

By default, gcc searches the following directories for header files:

     /usr/include
     /usr/local/include

Upvotes: 1

Related Questions