Behavior undefined warning
Ulf Wiger
ulf@REDACTED
Sat Apr 29 13:33:55 CEST 2006
Den 2006-04-29 00:38:37 skrev Joel Reymont <joelr1@REDACTED>:
> Folks,
>
> How do I fix this warning?
>
> src/xmpp_echo_behaviour.erl:9: Warning: behaviour gen_xmpp_client
> undefined
>
> The code looks like this
>
> -module(xmpp_echo_behaviour).
> -behaviour(gen_xmpp_client).
>
> and I definitely have gen_xmpp_client.beam
>
> Thanks, Joel
The linter must be able to call the function
gen_xmpp_client:behaviour_info(callbacks)
during compile-time.
Usually, the problem is that one forgets to
add a -pa (or -pz) flag to erlc.
/Ulf W
--
Ulf Wiger
More information about the erlang-questions
mailing list