LINUX.ORG.RU

gcc search path

 


0

1

задача - добавить каталог в путь для #include. но -Iкаталог не подходит, потому что заданный каталог будет иметь приоритет выше системных, мне же нужно наоборот. в мане ничего не нашел.



Последнее исправление: cetjs2 (всего исправлений: 1)

Ответ на: комментарий от mashina

Или нужен fallback для недостающих файлов?

именно.

Lincor
() автор топика
       -idirafter dir
           Search dir for header files, but do it after all directories specified with -I and the standard system directories have been exhausted.  dir is
           treated as a system include directory.  If dir begins with "=", then the "=" will be replaced by the sysroot prefix; see --sysroot and -isysroot.

       -isystem dir
           Search dir for header files, after all directories specified by -I but before the standard system directories.  Mark it as a system directory, so
           that it gets the same special treatment as is applied to the standard system directories.  If dir begins with "=", then the "=" will be replaced
           by the sysroot prefix; see --sysroot and -isysroot.
Jini ★★
()
Последнее исправление: Jini (всего исправлений: 1)
Ответ на: комментарий от Jini

-isystem не подходит, а вот -idirafter я не заметил. спасибо, буду учиться курить маны.

Lincor
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.