<br><br><div class="gmail_quote">On Tue, Mar 10, 2009 at 1:14 PM, John Maddock <span dir="ltr">&lt;<a href="mailto:john@johnmaddock.co.uk">john@johnmaddock.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I recently started using the Boost Math libraries because I need legendre<br>
polynomials. �However I cam across a problem I was hoping someone on this<br>
list could help me with.<br>
My personal code compiles fine with no problems. �When I add the line<br>
<br>
#include &quot;boost/math/special_functions/legendre.hpp&quot;<br>
<br>
then I get compiler errors attributed to one of my header files.<br>
Specifically I get:<br>
<br>
my_header.hh:109 error: ISO C++ forbids declaration of �tuple� with no type<br>
<br>
As I mentioned before, I don&#39;t believe the problem is in my header file<br>
because it compiles just fine without the legendre.hpp file.<br>
<br>
Has anyone seen this problem before? �Do you know how to fix it? �I am<br>
running gcc 4.2.1 on Mac OS X 10.5.6.<br>
</blockquote>
<br></div></div>
No I haven&#39;t seen that before, I would guess that there is a name clash somewhere, since legrendre.hpp pulls in Boost.TR1.Tuples.<br>
<br>
So... what&#39;s at line 109 in your header, and do you do a using namespace std::tr1; or something similar somewhere?<br>
<br>
HTH, John. <br></blockquote><div><br></div><div>Yep, you were right. �It is a name clash. �Line 109 was a boost::tuple. �I changed them all and now it works. �</div><div><br></div><div>Thanks for the help.</div><div>Jeremy�</div>
</div>