<div dir="ltr">Hi all,<div><br></div><div style>The Windows build is progressing. This might be a question for Christian&#39;s memory, however, or anyone who has more C-fu on hand than I do at the moment.</div><div style><br>
</div><div style>The bootstrap.py script (and friends) have suffered some bitrot. Tools that used to be downloaded are no longer available, or versions have changed, etc. After futzing around with MSYS/MinGW issues, I decided to give Cygwin a try. I remember this being a &quot;bad thing&quot; at one point.</div>
<div style><br></div><div style>I currently get through the compiler build, and all the way up to the TVM build. I get part way through libtvm, and then hit the build of the POSIX wrapper for Windows.</div><div style>







<p class="">gcc -DHAVE_CONFIG_H -I. -I../../../../../../tvm/posix      -I/cygdrive/c/kroc/distribution/windows/build/kroc-tvm-posix/runtime/libtvm -I/cygdrive/c/kroc/runtime/libtvm -g -O2 -Wall -DTVM_FIRMWARE_PATH=&#39;&quot;/cygdrive/c/kroc/distribution/windows/install/share/tvm/firmware/&quot;&#39; -DTVM_LIBRARY_PATH=&#39;&quot;/cygdrive/c/kroc/distribution/windows/install/lib/tvm/&quot;&#39; -MT win32_io.o -MD -MP -MF .deps/win32_io.Tpo -c -o win32_io.o ../../../../../../tvm/posix/win32_io.c</p>

<p class="">../../../../../../tvm/posix/win32_io.c: In function ‘char_available_console_win32’:</p>
<p class="">../../../../../../tvm/posix/win32_io.c:34:2: error: ‘DWORD’ undeclared (first use in this function)</p>
<p class="">../../../../../../tvm/posix/win32_io.c:34:2: note: each undeclared identifier is reported only once for each function it appears in</p>
<p class="">../../../../../../tvm/posix/win32_io.c:34:8: error: expected ‘;’ before ‘count’</p><p class="">The lack of a declaration of DWORD is because &quot;windef.h&quot; or (perhaps) &quot;windows.h&quot; is missing. Including &quot;windef.h&quot; yields conflicts on the definition of WORD, and &quot;windows.h&quot; conflicts with both &quot;WORD&quot; and &quot;UWORD&quot;.<br>
</p><p class="" style>Thoughts? I need the macros/function prototypes for Windows for the build, but I have conflicts. Do I #ifndef those out for Windows? Tweak the build system? What&#39;s the right starting point for fixing this?</p>
<p class="" style><br></p><p class="" style>Cheers,</p><p class="" style>Matt</p></div></div>