[erlang-questions] Include file problem

Ahmed Ali <>
Tue Feb 19 19:18:30 CET 2008


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 <> 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
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list