now i can generate a make file for a newly added source files which is located in a separate directory.<br><br>then my problem is how to call its function with in the existing theora source,<br><br>there is a function &quot;
<span style="color: rgb(0, 102, 0);">calc_available_bandwidth(char * dst_adrs)</span>&quot; in newly aded source file which is located in a new directory. its function signature is written in the &quot;common.h&quot; header file in the same directory.
<br><br>i wanna call this function with in the encoder_example.c , so i called this function in the main method of the encoder_example.c and include the header file(common.h) in the encoder_example.c<br><br>and i changed the 
<a href="http://makefile.am/" target="_blank">Makefile.am</a> in example directory as follow.<br><br><span style="color: rgb(0, 102, 0);">EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h <span style="color: rgb(153, 0, 0);">
../net/common.h ../net/client.c<br><br><font color="#000000">where common.h include the signature of the function and client.c include the implementation of the function.</font><br></span></span><br>but when run the make file , it gave an error as follow
<br><br><br><span style="color: rgb(0, 102, 0);">encoder_example123-encoder_example.o: In function `main&#39;:</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">encoder_example.c:(.text+0xc64): undefined reference to `calc_available_bandwidth&#39;
</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">collect2: ld returned 1 exit status</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">make[2]: *** [encoder_example123] Error 1
</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">make[2]: Leaving directory `/home/group10/student/project/theora_net_embeded/libtheora-1.0beta2/examples&#39;</span><br style="color: rgb(0, 102, 0);">

<span style="color: rgb(0, 102, 0);">make[1]: *** [all-recursive] Error 1</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">make[1]: Leaving directory `/home/group10/student/project/theora_net_embeded/libtheora-
1.0beta2&#39;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">make: *** [all] Error 2</span><br><br><br>please can anyone help me to solve this problem <br><br><br><br><div class="gmail_quote">
On Jan 17, 2008 11:24 PM, Ralph Giles &lt;<a href="mailto:giles@xiph.org" target="_blank">giles@xiph.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On Thu, Jan 17, 2008 at 07:28:55PM +0530, janaka priyadarshana wrote:<br><br>&gt; /bin/bash: @LIBTOOL@: command not found<br><br></div>This means you need to install libtool and run<br><br> &nbsp;libtoolize --automake
<br><br>before rerunning configure and make.<br><font color="#888888"><br>&nbsp;-r<br></font></blockquote></div><br><br clear="all"><br>-- <br>-----------<br>Regards,<br>Janaka Priyadarshana