[erlang-questions] Installation of exprecs.erl

Ulf Wiger <>
Sat Jan 10 23:59:59 CET 2009


Eh, apologies. Unless you have a good reason to use -pa,
-pz is of course better.  (:

BR,
Ulf W

2009/1/10 Ulf Wiger <>:
> The 'undef' means that erlc can't find the file exprecs.beam.
>
> Try adding e.g. -pa ../ebin to the erlc command line in your
> Makefile (or similar, depending on how you prefer to identify
> the location of exprecs.beam in the Makefile)
>
> BR,
> Ulf W
>
> 2009/1/9 Torben Hoffmann <>:
>> Hi,
>>
>> I have put exprecs.erl into util/src/ and added it to my util/ebin/util.app
>> file but when I do my make it keeps complaining about
>>
>> src/record_logger.erl:none: error in parse transform 'exprecs': {undef,
>>                                      [{exprecs,parse_transform,
>>                                        [[{attribute,1,file,
>>                                           {"src/record_logger.erl",1}},
>>
>> {attribute,17,module,record_logger},
>>                                          {attribute,1,file,
>>
>> {"/home/pap/subv/util-0.1/../pap_app-0.1/include/my_types.hrl",
>>                                            1}},
>> <snip>
>>
>> I have my records definded in a .hrl which is included in the module where I
>> want to utilise the exprecs functionality like this:
>>
>> -compiler({parse_transform,exprecs}).
>> -include("my_types.hrl").
>>
>> -export([fields/1]).
>> -export_records([ % huge list with all the records from my_types.hrl that I
>> want to get the field names for
>>                 ]).
>>
>> fields(Rec) ->
>>     '#info-'(fields,Rec).
>>
>> Have I installed exprecs incorrectly?
>>
>> Thanks,
>> Torben
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>



More information about the erlang-questions mailing list