What is the best way to include a header file (

2019-07-25 09:28发布

I am preparing a release for an application using rebar, and I wonder what is the usual way to include header file from standard library. In my case, it is the wx.hrl file, which is included with its full absolute path in my code.

I guess that it is not the right way :o)

1条回答
爷、活的狠高调
2楼-- · 2019-07-25 10:20
-include_lib("wx/include/wx.hrl").

This makes the preprocessor look for the latest version of the wx application in the code path. See this question for more details.

查看更多
登录 后发表回答