Hey guys,<br>  Can anyone out there give me a hand?  I&#39;ve made some headway, but I&#39;m still struggling and could use some help.  Here are some changes I&#39;ve had to make to get compiling.<br><br><ol><li>integer types are a problem, as well as missing semaphore references.  I&#39;ve replaced all references to &lt;stdint.h&gt; with &lt;boost/cstdint.hpp&gt;<br>
<br></li><li>I had to add #include &lt;semaphore.h&gt; to utility.hh as Visual C++ 8 can&#39;t find the semaphore struct.<br><br></li><li>Compiler can&#39;t find #include &quot;config.h&quot; in logger.hh<br><br></li><li>
Copiler complians of an ambigious definition of data types in utility.hh as duplicated by boost apis.  However if I comment out the definitions, I receive undefined type errors.<br><br> #ifdef NEED_POSIX_TYPEDEF<br>typedef unsigned char uint8_t;<br>
typedef unsigned short int uint16_t;<br>typedef unsigned int uint32_t;<br>typedef unsigned long long uint64_t;<br>#endif<br></li></ol><br><br><br>I contact powerdns support a week ago, but I haven&#39;t heard anything back.  We&#39;re on a tight time line, and any binary we produce I&#39;d like to publish.  Again this is from the 2.9.22 code base, would I be better off building a more recent version from trunk?  Stability is the largest requirement we have as all the functionality we have is in 2.9.22.<br>
<br>Platform Server 2008 32 bit<br>Visual C++ 8<br>Pthreads 2.8.0<br>NSIS 2.45<br>Boost 1.3.9<br><br><br><br>Thanks,<br>Todd<br><br><br><div class="gmail_quote">2009/7/22 Todd Nine <span dir="ltr">&lt;<a href="mailto:todd@spidertracks.co.nz">todd@spidertracks.co.nz</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">Hi all,<div>  I&#39;m attempting to build Power DNS for windows using Visual Studio 2008 C++.  I checked out revision 1325 from trunk as that appears to be release 2.9.22 judging by the comment and the changes.  However, when I try to build I always receive a massive number of errors because it can&#39;t find &quot;stdint.h&quot;.   I&#39;ve checked my visual studio include directory (C:\Program Files\Microsoft Visual Studio 9.0\VC\include) and there definitely isn&#39;t a stdint.h file. </div>
<div><br></div><div>I&#39;ve followed all the steps outlined here</div><div><br></div><div><a href="http://doc.powerdns.com/on-windows.html" target="_blank">http://doc.powerdns.com/on-windows.html</a></div><div><br></div>
<div>and I&#39;m using pthread v 2.8.0 and nsis v 2.45.</div><div><br></div><div><br></div><div>I&#39;ve found this bit of code for windows users to get these header files</div><div><br></div><div><a href="http://code.google.com/p/msinttypes/" target="_blank">http://code.google.com/p/msinttypes/</a></div>
<div><br></div><div><br></div><div>Once I add the int header from the google code project I no longer receive errors about the integer header, however I still can&#39;t build.  I consistently get the following errors.</div>
<div><br></div><div><br></div><div>error C2143: syntax error : missing &#39;;&#39; before &#39;*&#39;<span style="white-space: pre;">        </span>c:\powerdns\pdns\utility.hh<span style="white-space: pre;">        </span>80<span style="white-space: pre;">        </span>pdns_recursor</div>
<div><div>error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<span style="white-space: pre;">        </span>c:\powerdns\pdns\utility.hh<span style="white-space: pre;">        </span>80<span style="white-space: pre;">        </span>pdns_recursor</div>
<div><br></div><div>I also do not have any of the &lt;boost/*&gt; includes that are defined.  Any ideas on how to fix the import issues?  I&#39;m reluctant to import other 3rd party api&#39;s that aren&#39;t documented as I don&#39;t want to produce an unstable build.</div>
<div><br></div><div>Thanks,</div><div><br></div></div><div> <br><div> <span style="font-size: 11px;"><div style=""><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Lucida Grande&#39;; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Lucida Grande&#39;; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Lucida Grande&#39;; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Lucida Grande&#39;; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(193, 216, 47); font-family: &#39;Lucida Grande&#39;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="margin: 0px; color: rgb(193, 216, 47);">
<span style="font-family: &#39;Lucida Sans Unicode&#39;;">todd</span></div><div style="margin: 0px; color: rgb(193, 216, 47);"><font face="&#39;Lucida Sans Unicode&#39;"><span style="color: rgb(0, 0, 0); font-family: &#39;Lucida Grande&#39;; font-size: 11px;"><div style="">
<div><div style=""><span style="color: rgb(193, 216, 47); font-size: 16px;"><div style="margin: 0px; color: rgb(193, 216, 47);"><font color="#808080" face="&#39;Lucida Sans Unicode&#39;" size="2"><span style="font-size: 10px;">SENIOR SOFTWARE ENGINEER</span></font></div>
<div style="margin: 0px; min-height: 15px;"><font face="&#39;Lucida Sans Unicode&#39;"><br></font></div><div style="margin: 0px; min-height: 15px;"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(0, 0, 0);"><font face="&#39;Lucida Sans Unicode&#39;">todd nine </font></span><font face="&#39;Lucida Sans Unicode&#39;">| spidertracks ltd |  117a the square</font></span></div>
<div style="margin: 0px; color: rgb(128, 128, 128);"><font face="&#39;Lucida Sans Unicode&#39;">po box 5203 | palmerston north 4441 | new zealand</font></div><div style="margin: 0px; color: rgb(128, 128, 128);"><span><font face="&#39;Lucida Sans Unicode&#39;">P</font></span><font face="&#39;Lucida Sans Unicode&#39;">: +64 6 353 3395 |</font><font face="&#39;Lucida Sans Unicode&#39;"> </font><span><font face="&#39;Lucida Sans Unicode&#39;">M</font></span><font face="&#39;Lucida Sans Unicode&#39;">: +64 210 255 8576 </font></div>
<div style="margin: 0px; color: rgb(128, 128, 128);"><span><font face="&#39;Lucida Sans Unicode&#39;">E</font></span><font face="&#39;Lucida Sans Unicode&#39;">: <font color="#c1d82f" size="4"><font face="&#39;Lucida Grande&#39;" size="3"><span style="font-size: 12px;"><a href="mailto:todd@spidertracks.co.nz" target="_blank">todd@spidertracks.co.nz</a></span></font><span style="font-size: 16px;"> <span style="color: rgb(128, 128, 128); font-family: &#39;Lucida Grande&#39;; font-size: 12px;"><span><font face="&#39;Lucida Sans Unicode&#39;">W</font></span><font face="&#39;Lucida Sans Unicode&#39;">: <span style="color: rgb(193, 216, 47);"><font face="&#39;Lucida Grande&#39;"><a href="http://www.spidertracks.com" target="_blank">www.spidertracks.com</a></font></span></font></span></span></font></font></div>
</span></div></div></div></span></font></div></span></div></span></div></span></div></span></div></span></div></span> </div><br></div></div></blockquote></div><br>