monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] strptime not in MinGW time.h


From: Stephen Leake
Subject: [Monotone-devel] strptime not in MinGW time.h
Date: Tue, 18 May 2010 04:49:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt)

I'm getting a compilation error on Windows MinGW:

../monotone/dates.cc: In static member function `static date_t 
date_t::from_formatted_localtime(const std::string&, const std::string&)':
../monotone/dates.cc:446: error: `strptime' was not declared in this scope

On Debian, 'strptime' is in time.h; on MinGW, it is not; it isn't
anywhere in c:/MinGW/include

Upgrading to the latest MinGW 5.1.6 didn't help.

A web search turned up this reference:

which identifies 'strptime' as an "XSI"; "X/Open System Interfaces
Extension". So apparently MinGW doesn't support that.

Annotate says 'strptime' was added recently, as part of the
changelog-editor work:

  f67e1dea.. by derek 2010-03-14

Can this be rewritten using more standard libraries?

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]