gcc에서 현재 include와 library를 참조하는 directory?

thisrule의 이미지

gcc에서 현재 include와 library를 참조하는 directory를 알고 싶은데 어떻게 알수 있나요?

pynoos의 이미지

header include는

http://bbs.kldp.org/viewtopic.php?t=981&highlight=

여기를 참조하시고, library link는

gcc --help 에서 나오는

gcc -print-search-dirs

를 해보시면 됩니다.