[erlang-questions] Include file problem

Guido Witmond guido@REDACTED
Tue Feb 19 23:39:46 CET 2008


I tried -include_lib("xmerl-1.1.6/include/xmerl.hrl"). but that  
failed as well.

It was -include_lib("xmerl/include/xmerl.hrl"). that did the trick.

Thanks for all the quick replies.

Guido.


On 19 Feb 2008, at 22:11 , Michael McDaniel wrote:

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




More information about the erlang-questions mailing list