What is the best way to include a header file (wx.hrl for example) in a release using rebar

China☆狼群 提交于 2019-12-24 14:23:56

问题


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:


-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.



来源:https://stackoverflow.com/questions/18363244/what-is-the-best-way-to-include-a-header-file-wx-hrl-for-example-in-a-release

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!