On Wed, May 25, 2011 at 01:31:16PM +0200, Vincent van Ravesteijn wrote: > On 25-5-2011 12:42, Enrico Forestieri wrote: > > Please, can someone on Windows compiling LyX with MSVC check whether > > forward search works for the dvi format? > > > > For details, see this thread: > > http://thread.gmane.org/gmane.editors.lyx.general/69958 > > > > Hi Enrico, > > I added this: > > lyxerr << "pdf: " << int(pdfname.lastModified()) << " dvi: " << > int(dviname.lastModified()) << endl; > lyxerr << (pdfname.lastModified() > dviname.lastModified()); > lyxerr << (int(pdfname.lastModified()) > int(dviname.lastModified())); > > and the output was: > > pdf: -1 dvi: 1306322905 > 1 > 0
According to your results, dvi forward search doesn't work when compiling with MSVC. This is puzzling, because, apart from the unix world where time_t is signed for sure (see http://en.wikipedia.org/wiki/Unix_time#Representing_the_number) I found indirect evidence that it should be signed on Windows, too: http://support.microsoft.com/kb/149471/en-us Anyway, as I checked that the posix standard does not dictate the signedness of time_t (and even the fact that it should be an integral type, for that matter), it is better to not rely on it and waste a few cpu cycles for the sake of correctness (and MSVC :) -- Enrico
