title: Writing and compiling custom behaviours in Erlang
body: <p>I'm trying to <strong>write and compile a custom behaviour in Erlang</strong>.</p>
  
  <p>I cannot find any clear documentation on how to compile this behaviour. </p>
  
  <pre><code>-module(bla).
  
  -export([start_link/0,behaviour_info/1]).
  
  behaviour_info(callbacks)-&gt;
      [{init,1}];
  behaviour_info(_Other)-&gt;
      undefined.
  
  %% -callback init(Args :: term()) -&gt;
  %%     {ok, State :: term()} | {ok, State :: term(), timeout()} |
  %%     {stop, Reason :: term()} | ignore.
  
  start_link()-&gt;
      init([]).
  </code></pre>
  
  <p>my command for comiling is :</p>
  
  <pre><code>erlc.exe .\src\bla.erl
  </code></pre>
  
  <p>resulting:</p>
  
  <pre><code>bla.erl:24: function init/1 undefined
  </code></pre>
  
  <p><strong>Anyone an idea on writing and compiling behaviours in erlang, please? any links?</strong></p>