<div dir="ltr">Hi all,<div><br></div><div style>The Windows build is progressing. This might be a question for Christian'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 "bad thing" 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='"/cygdrive/c/kroc/distribution/windows/install/share/tvm/firmware/"' -DTVM_LIBRARY_PATH='"/cygdrive/c/kroc/distribution/windows/install/lib/tvm/"' -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 "windef.h" or (perhaps) "windows.h" is missing. Including "windef.h" yields conflicts on the definition of WORD, and "windows.h" conflicts with both "WORD" and "UWORD".<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'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>