[CCC DEV] Windows build progressing, question

Carl Ritson C.G.Ritson at kent.ac.uk
Tue Apr 16 10:03:51 BST 2013


Hi Matt,

> [...snip...]
>
> 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/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
>
> ../../../../../../tvm/posix/win32_io.c: In function
> ‘char_available_console_win32’:
>
> ../../../../../../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
> ‘count’
>
> 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".

In tvm_posix.h there is a workaround using macros which avoids the
conflict with Windows types.  Do you have WIN32 defined in your
config?  As that would cause the workaround to be activated and
windows.h to be included?  The problem with cygwin might be that WIN32
is not defined?

Cheers,

Carl



More information about the developers mailing list