After applying patches from Elliot from RedHat, code compiled under MSVC too, BUT almost 20 subroutines have #include <unistd.h> unprotected. These should be protected by
#ifdef HAVE_UNISTD_H #include <unistd.h> #endif MSVC does not contain unistd.h. It was a minor problem. Two other files in /dx/src/exec/dxmods (camera.c and displayx.c) returned errors under MSVC. The error was "i has no struct member name". This error came because Elliot pacthed some code and added unprotected #include <unistd.h> Because MSVC has no unistd.h therefore I commented it cout, which caused the error, "i has no struct member..." The patches for camera.c and displayx.c were to fix some minor compiler warnings. I reverted the patch for these 2 files. Compiled the code under MSVC and recompile on Linux. Everything seems to be OK, all dxsamples worked as test. Suhaib
