Advertisement

Enet cant compile xlocinfo fails to compile

Started by December 28, 2016 06:01 PM
1 comment, last by _WeirdCat_ 7 years, 10 months ago

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

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

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

Advertisement

ill try anyway i commented that function out and everything works so far. ;x

<ctime> is included

This topic is closed to new replies.

Advertisement