Sign in to follow this  

Enet cant compile xlocinfo fails to compile

Recommended Posts

Strange problem i have, whenever i add to project enet.h, during compile it throws me to xlocinfo file where: no member named 'strftime' in namespace 'std'.

		// FUNCTION _Strftime
inline size_t _Strftime(char *_Ptr, size_t _Count, const char *_Format,
	const struct tm *_Ptime, void *)
	{	// perform locale-specific strftime
	return (_CSTD strftime(_Ptr, _Count, _Format, _Ptime)); //here
	}

Im not quite sure what should i do in order to compile it

Edited by WiredCat

Share this post


Link to post
Share on other sites

Did you include <ctime>?  That is where std::strftime() lives.

Alternatively, if you're looking for the c version, <ctime.h>, with ::strftime()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this