<div dir="ltr">If compliling using gcc, you could add &quot;-DM_PI=<span class="Apple-style-span" style="border-collapse: collapse; ">3.141592653&quot; to</span>&nbsp;the command line used for compiling scal.c, which would be pretty much the same result that Jean-Marc provided, without altering the sources... However, altering the sources is a more elegant solution, and easier to track.<div>
<div><div><br><div class="gmail_quote">On Mon, Sep 15, 2008 at 7:19 AM, liam mail <span dir="ltr">&lt;<a href="mailto:liam.list@googlemail.com">liam.list@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am in the process of adding speex 1.2rc1 to a project of mine, not<br>
via compiling as a static library yet including the source and<br>
compiling with my own to create a dynamic link library. This worked<br>
fine with the last beta release yet is causing problems with this<br>
release candidate. The problem is in the file scal.c which is about<br>
M_PI being undefined, this file was added to speex in said version. Is<br>
there a work around to this which does not involve editing the source<br>
of speex or does the library no require that it be compiled<br>
separately?<br>
Thanks.<br>
_______________________________________________<br>
Speex-dev mailing list<br>
<a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Keith Kyzivat<br><br>SIPez LLC.<br>SIP VoIP, IM and Presence Consulting<br><a href="http://www.SIPez.com">http://www.SIPez.com</a><br>tel: +1 (617) 273-4000<br>
</div></div></div></div>