[Ctk-developers] Recently added #include prevents building on Windows7 with VS2008

Csaba Pinter pinter at cs.queensu.ca
Thu Jul 12 11:26:55 EDT 2012


Hi all,

A commit from two days ago introduced a build error in CTK on my machine 
(Win7, VS2008, http://slicer.cdash.org/viewBuildError.php?buildid=27825):
https://github.com/commontk/CTK/commit/9dd5828465db1e93851042d10a1b5a80e52a8309

The same build error occurs on other machines too, for example on 
District9.kitware: http://slicer.cdash.org/viewBuildError.php?buildid=27782

The first line from the following code snippet causes the problem. 
However, this include happens a few lines below if a macro is defined. 
Instead of including unistd.h in every case, this macro should be 
further investigated.

*#include <unistd.h>*

// STD includes
#include <cstdio> // For _fileno or fileno
#ifdef _MSC_VER
# include <io.h> // For _write()
#else
# *include <unistd.h>*
#endif


Thank you,
csaba

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20120712/5ed3dd33/attachment.html>


More information about the Ctk-developers mailing list