Hi,<br><br><div><span class="gmail_quote">On 26/07/06, <b class="gmail_sendername">jm</b> <<a href="mailto:jeffm@ghostgun.com">jeffm@ghostgun.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Having some problems with the following program is simplified example<br>based on something I'm trying to write,<br><br>-module(test_proc).<br><br>-export([go/0]).<br><br>go() -><br>   proc_lib:start_link(?MODULE, simple, [], infinity).
<br><br>simple() -><br>   proc_lib:init_ack({ok, self()}),<br>   await().<br><br>await() -><br>   receive<br>     after 1000 -><br>       exit({ok, timeout})<br>    end.<br><br><br>$ erlc test_proc.erl<br>./test_proc.erl:21: Warning: function await/0 is unused
<br>./test_proc.erl:21: Warning: function simple/0 is unused</blockquote><div><br>You have to export the simple/0 function for your proc_lib:start_link to work. Once you export that, these warnings will disappear and your example will work.
<br><br>Chandru<br></div></div><br>