error compiling old xmerl with r13b

Garry Hodgson garry@REDACTED
Wed Aug 5 21:08:41 CEST 2009


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


More information about the erlang-questions mailing list