Click to See Complete Forum and Search --> : about g++ and some defined struct


deepinlife
July 17th, 2005, 11:27 PM
what is the search path of g++ in searching paths?
for example /usr/include/c++/3.2/
what is all the all teh folders it search ?and how to know them?
is there a variable having all of it?


also in codei see some defined struct somewhere..but i want to see the defination of these struct, where is teh header conating it ?
off_t
mode_t
size_t
uintmax_t

mail2virag
July 18th, 2005, 12:43 AM
To know that which file it is using, you can use "which" command.
e.g. fire "which g++" and it will let you know the path of g++ binary.
It will display nothing, if it fails to find g++ binary.

deepinlife
July 18th, 2005, 03:30 AM
i don't want to know the binary teh program use...i want to know teh header files it search..

Latem
July 18th, 2005, 10:03 AM
i don't want to know the binary teh program use...i want to know teh header files it search..

In general you can use grep:

man grep
http://www.gnu.org/software/grep/grep.html

Most standard types (with _t) are appropriatly in sys/types.h.

Latem