[erlang-questions] Include file problem

Guido Witmond guido@REDACTED
Fri Feb 15 22:16:44 CET 2008


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.




More information about the erlang-questions mailing list