Couchview.c example on windows

Did anyone succeed in building couchview.c under Windows?

#include <unistd.h> is causing problems since it does not exist on Windows.

I am using Visual Studio 2008, libcouchbase and yajl from GitHub.

here are some of by errors:

1> Conversion from ‘void*’ to pointer to non-‘void’ requires an explicit cast
1>couchview.cpp(58) : error C2440: ‘=’ : cannot convert from ‘const void *’ to ‘const char '
1> Conversion from 'void
’ to pointer to non-‘void’ requires an explicit cast
1>couchview.cpp(81) : error C2440: ‘=’ : cannot convert from ‘const void *’ to ‘const char '
1> Conversion from 'void
’ to pointer to non-‘void’ requires an explicit cast
1>couchview.cpp(82) : error C3861: ‘isatty’: identifier not found
1>couchview.cpp(84) : error C3861: ‘snprintf’: identifier not found

there is couchview.cpp in your build log, we do not have such file in libcouchbase. Is it modified couchview.c?

the errors looks like trivial to fix. just use explicit casts as your compiler tells you, remove isatty call and use _snprintf instead.

Any news on this?
Have you tried the fix proposed by Sergey?

Regards
Tug
@tgrall