<div dir="ltr">What does your makefile look like? Are you linking against libfreeswitch?<div><br></div><div>The sample makefile might be worth a look:</div><div><a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_skel/Makefile.am">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_skel/Makefile.am</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 April 2018 at 10:34, Vidhya S R <span dir="ltr"><<a href="mailto:vidhyasr23@gmail.com" target="_blank">vidhyasr23@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm using an extern variable (switch_hash_t *) declared in a header file under src/include. This variable is defined in another .c file under src.<br><br>Now, I'm including this header file in my module under src/mod/my_mod and trying to initialise the hash. It compiles fine but when freeswitch is run, the module is not loaded and throws the error undefined reference.<br><br>Im not sure why. Sorry if this is a basic question.</div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" rel="noreferrer" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>