[erlang-questions] Include file problem

Michael McDaniel erlangy@REDACTED
Tue Feb 19 22:11:07 CET 2008


-include_lib("xmerl/include/xmerl.hrl").



On Tue, Feb 19, 2008 at 10:18:30PM +0400, Ahmed Ali wrote:
> Hi Guide,
> 
> Try the following:
> 
> -include_lib("xmerl-1.1.6/include/xmerl.hrl").
> 
> This will start the include from the default lib directory. I guess it
> should work.
> 
> Best regards,
> 
> Ahmed
> 
> On Feb 16, 2008 1:16 AM, Guido Witmond <guido@REDACTED> wrote:
> > Hello all,
> >
> > I'm writing a small  app that needs to parse an xml string.
> >
> > However to use the xmerl_xpath library I need to include the file
> > xmerl.hrl. And the only way I get that
> > is by writing down the entrire path starting at the root:
> >
> > -include_lib("/opt/local/lib/erlang/lib/xmerl-1.1.6/include/xmerl.hrl").
> >
> > I would expect to write just the basename:
> >
> > -include_lib("xmerl.hrl").
> >
> > So what could be the problem?
> >
> > I'm running on OS/X 10.4.11 with macports erlang R12 in /opt/local/
> > lib/erlang.
> >
> > regards, Guido.
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
+1 503 283 5284



More information about the erlang-questions mailing list