[erlang-questions] error compiling old xmerl with r13b

Kenneth Lundin kenneth.lundin@REDACTED
Wed Aug 5 22:32:23 CEST 2009


Hi,

I am missing the include of foo.hrl.
Isn't that the reason for the error message below?

/Kenneth Erlang7OTP, Ericsson

On Wed, Aug 5, 2009 at 9:08 PM, Garry Hodgson<garry@REDACTED> wrote:
> i'm trying to build some ancient code of ours using r13b,
> and have hit a snag having to do with records.  the code
> in question is an old version of xmerl (0.17).  boiled down
> to its essence, i have two files:
>
> foo.hrl:
>
> -record( xmlContext, { axis_type = forward }).
>
> foo.erl:
>
> -module(foo).
>
> -record(state, {context = #xmlContext{}, acc = []}).
>
> foo() -> bar.
>
> when i compile foo.erl using erlc from r13b, i get:
>
> --> erlc foo.erl
> ./foo.erl:7: record xmlContext undefined
> ./foo.erl:7: Warning: record state is unused
> ./foo.erl:10: Warning: function foo/0 is unused
>
> compiling using our old r9C setup works fine.
> i don't want to invest a lot of effort in updating the old code,
> since the only reason i need to build it with r13b is to compare
> its performance with a completely rewritten version that doesn't use
> xml at all.
>
> i assume something has changed in the language.  can anyone tell
> me what, and what i need do to fix this with minimal effort?
>
> thanks
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list