<div class="im">>> You need to link against libpq when you link the asterisk binary (the<br>
>> gcc -o / ld stage), e.g. -lpq.<br>
>><br><br>
</div>> And the way to do this is to place the following comment within your C source<br>
> file:<br>
><br>>/*** MODULEINFO<br>> <depend>pgsql</depend><br>
> ***/<br>
<br>
<br>Thanks everyone for your help. I did add the following to my code, but I am still getting the exact error message. I also made sure I deleted my old module and made sure the new module that was created is the one with <depend>pgsql</depend>.<br>
<br>
/*** MODULEINFO<br>
<depend>pgsql</depend><br>
***/<br><br>Is there something else that I am doing wrong?<br><br>Thanks<br>Joel<br><br><br><div class="gmail_quote">On Fri, May 22, 2009 at 2:18 AM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
On Thursday 21 May 2009 23:07:47 Alex Balashov wrote:<br>
<div class="im">> Joel Jn-Francois wrote:<br>
> > The problem arises when I try to load my app within asterisk "module<br>
> > load app_callingcard.so". I get the following error message:<br>
> > WARNING[31732]: loader.c:417 load_dynamic_module: Error loading module<br>
> > 'app_callingcard.so': /usr/lib/asterisk/modules/app_<br>
> > callingcard.so: undefined symbol: PQsetdbLogin.<br>
><br>
</div><div class="im">> You need to link against libpq when you link the asterisk binary (the<br>
> gcc -o / ld stage), e.g. -lpq.<br>
<br>
</div>And the way to do this is to place the following comment within your C source<br>
file:<br>
<br>
/*** MODULEINFO<br>
<depend>pgsql</depend><br>
***/<br>
<br>
--<br>
<font color="#888888">Tilghman<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br>