Luis Rivera wrote: >> Luis, >> I've made available a new version of tex2lyx for Windows that should >> work on Win95 and Win98. Get it from >> http://wiki.lyx.org/uploads/LaTeX/tex2lyx/tex2lyx_win32_26sep05.zip
> I downloaded the file, and it works fine on Win98. Unfortunately, on > win95 keeps crashing. The crash window runs as follows: > `The TEX2LYX.EXE file is linked to missing export > KERNEL32.DLL:GetFileAttributesExA' Ahhhhhhh: $ grep -r GetFileAttributes lyx/devel/src lyx/devel/src/support/fs_extras.C: DWORD const attr = ::GetFileAttributes(ph.string().c_str()); lyx/devel/src/support/fs_extras.C: DWORD const attr = ::GetFileAttributes(ph.string().c_str()); lyx/devel/src/support/fs_extras.C: DWORD const attr = ::GetFileAttributes(ph.string().c_str()); I'm sure that we can work around this in much the same way. Hmmm. http://msdn.microsoft.com/library/en-us/fileio/fs/getfileattributes.asp says that it should work on Win95 too... I'm confused :( Ahhhhhhhhhh. $ grep -r GetFileAttributes lyx/devel/boost lyx/devel/boost/libs/filesystem/src/operations_posix_windows.cpp: if(::GetFileAttributesA( ph.string().c_str() ) == 0xFFFFFFFF) lyx/devel/boost/libs/filesystem/src/operations_posix_windows.cpp: return false; // GetFileAttributes failed because the path does not exist lyx/devel/boost/libs/filesystem/src/operations_posix_windows.cpp: DWORD attributes = ::GetFileAttributesA( ph.native_directory_string().c_str() ); lyx/devel/boost/libs/filesystem/src/operations_posix_windows.cpp: if ( !::GetFileAttributesExA( ph.string().c_str(), lyx/devel/boost/libs/filesystem/src/operations_posix_windows.cpp: if ( !::GetFileAttributesExA( ph.string().c_str(), http://msdn.microsoft.com/library/en-us/fileio/fs/getfileattributesex.asp states that GetFileAttributesExA is not available on Win95. I'll post a message to the Boost mailing list. >> Moreover, the attached patch should allow the code to be compiled on >> Cygwin as well as on MinGW. I'd be interested to see whether the >> cygwin-compiled binary runs on Win95/Win98 too, > Applied the patch as you suggest, and it compiles fine on both MinGW > and cygwin. Great! > However, there are differences. *My* mingw installation > makes a much smaller exe (by about 1Mb); and it doesn't run either on > win95: same kernel32.dll problem; the cygwin compilation works fine on > cygwin, and even on win95, provided the relevant libraries (cygwin1.dll > and cygz.dll) are somewhere in the path. So it seems that on win95 the > link to `native' kernel32.dll is still messed up... Interesting. > Perhaps you could ask Alex AT lyx.hu to check whether > it works on his win98/ME machines. Will do. -- Angus