[CCC DEV] Windows build progressing, question

Matt Jadud matt at jadud.com
Tue Apr 16 04:00:30 BST 2013

Hi all,

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

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.

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.

gcc -DHAVE_CONFIG_H -I. -I../../../../../../tvm/posix
-I/cygdrive/c/kroc/runtime/libtvm -g -O2 -Wall
-MT win32_io.o -MD -MP -MF .deps/win32_io.Tpo -c -o win32_io.o

../../../../../../tvm/posix/win32_io.c: In function

../../../../../../tvm/posix/win32_io.c:34:2: error: ‘DWORD’ undeclared
(first use in this function)

../../../../../../tvm/posix/win32_io.c:34:2: note: each undeclared
identifier is reported only once for each function it appears in

../../../../../../tvm/posix/win32_io.c:34:8: error: expected ‘;’ before

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".

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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/developers/attachments/20130415/9bd624bf/attachment.htm>

More information about the developers mailing list