开发者

What is the default path for OSX system include files when building a C++ application?

开发者 https://www.devze.com 2023-03-20 13:21 出处:网络
I am building a C++ application at the command line (using make with an open-source library (Xerces 2.8)).One of the files includes an OSX system file,

I am building a C++ application at the command line (using make with an open-source library (Xerces 2.8)). One of the files includes an OSX system file,

#include <TextUtils.h>

When I type make -n to determine the command used to compile the given file, there is no include path for the system framewor开发者_开发问答k files provided. Therefore, I assume that on OSX the gcc compiler looks in a default location for system include files.

I would like to know what this location is. When I search for TextUtils.h, I see many versions of the file in different locations, including a few different possible candidates for what might be a default location.

How can I determine the default path the system uses for system include files?


Executing the following command

# echo "" | gcc -xc - -v -E

will output the buildin configuration of gcc among which are the default includes.

0

精彩评论

暂无评论...
验证码 换一张
取 消