Hey guys,<br> Can anyone out there give me a hand? I've made some headway, but I'm still struggling and could use some help. Here are some changes I've had to make to get compiling.<br><br><ol><li>integer types are a problem, as well as missing semaphore references. I've replaced all references to <stdint.h> with <boost/cstdint.hpp><br>
<br></li><li>I had to add #include <semaphore.h> to utility.hh as Visual C++ 8 can't find the semaphore struct.<br><br></li><li>Compiler can't find #include "config.h" 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't heard anything back. We're on a tight time line, and any binary we produce I'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"><<a href="mailto:todd@spidertracks.co.nz">todd@spidertracks.co.nz</a>></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'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't find "stdint.h". I've checked my visual studio include directory (C:\Program Files\Microsoft Visual Studio 9.0\VC\include) and there definitely isn't a stdint.h file. </div>
<div><br></div><div>I'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'm using pthread v 2.8.0 and nsis v 2.45.</div><div><br></div><div><br></div><div>I'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't build. I consistently get the following errors.</div>
<div><br></div><div><br></div><div>error C2143: syntax error : missing ';' before '*'<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 <boost/*> includes that are defined. Any ideas on how to fix the import issues? I'm reluctant to import other 3rd party api's that aren't documented as I don'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: 'Lucida Grande'; 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: 'Lucida Grande'; 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: 'Lucida Grande'; 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: 'Lucida Grande'; 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: 'Lucida Grande'; 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: 'Lucida Sans Unicode';">todd</span></div><div style="margin: 0px; color: rgb(193, 216, 47);"><font face="'Lucida Sans Unicode'"><span style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; 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="'Lucida Sans Unicode'" size="2"><span style="font-size: 10px;">SENIOR SOFTWARE ENGINEER</span></font></div>
<div style="margin: 0px; min-height: 15px;"><font face="'Lucida Sans Unicode'"><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="'Lucida Sans Unicode'">todd nine </font></span><font face="'Lucida Sans Unicode'">| spidertracks ltd | 117a the square</font></span></div>
<div style="margin: 0px; color: rgb(128, 128, 128);"><font face="'Lucida Sans Unicode'">po box 5203 | palmerston north 4441 | new zealand</font></div><div style="margin: 0px; color: rgb(128, 128, 128);"><span><font face="'Lucida Sans Unicode'">P</font></span><font face="'Lucida Sans Unicode'">: +64 6 353 3395 |</font><font face="'Lucida Sans Unicode'"> </font><span><font face="'Lucida Sans Unicode'">M</font></span><font face="'Lucida Sans Unicode'">: +64 210 255 8576 </font></div>
<div style="margin: 0px; color: rgb(128, 128, 128);"><span><font face="'Lucida Sans Unicode'">E</font></span><font face="'Lucida Sans Unicode'">: <font color="#c1d82f" size="4"><font face="'Lucida Grande'" 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: 'Lucida Grande'; font-size: 12px;"><span><font face="'Lucida Sans Unicode'">W</font></span><font face="'Lucida Sans Unicode'">: <span style="color: rgb(193, 216, 47);"><font face="'Lucida Grande'"><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>