On Tue, Feb 01, 2005 at 10:59:47AM +0100, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | I just tried compiling latest CVS again. Here is what happens: > > > | g++ -DHAVE_CONFIG_H -I. -I../../../lyx/src/support -I../../src > | -I../../../lyx/src/support/.. -I../../../lyx/boost -I/usr/local/include > | -W -Wall -I/usr/X11R6/include -O2 -fno-exceptions -mms-bitfields > | -MT fs_extras.lo -MD -MP -MF .deps/fs_extras.Tpo -c > | ../../../lyx/src/support/fs_extras.C -o fs_extras.o > > > | ../../../lyx/src/support/fs_extras.C: In function `bool > | boost::filesystem::is_readable(const boost::filesystem::path&)': > | ../../../lyx/src/support/fs_extras.C:36: error: `DWORD' undeclared (first > use > > Does it help if you add a > > #include <windows.h> > > to this file (fs_extras.C)
Yes. I did the following. The binary still exhibits the problem I posted about at the beginning of this thread ("Unable to determine path..."). Index: src/support/fs_extras.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/support/fs_extras.C,v retrieving revision 1.2 diff -u -r1.2 fs_extras.C --- src/support/fs_extras.C 2005/01/31 19:31:11 1.2 +++ src/support/fs_extras.C 2005/02/01 15:46:41 @@ -13,6 +13,10 @@ #include <sys/stat.h> #include <fcntl.h> +#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__) +#include <windows.h> +#endif + // BOOST_POSIX or BOOST_WINDOWS specify which API to use. # if !defined( BOOST_WINDOWS ) && !defined( BOOST_POSIX ) # if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__)