I've just started properly using precompiled headers in my game engine:
I'm getting a lot of errors similar to:Code:// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // TODO: reference additional headers your program requires here #include <iostream> #include <algorithm> #include <map> #include <string> #include <vector>
from time.inl.Code:cannot convert parameter 1 from 'const time_t *' to 'const __time32_t *'
From reading around, this seems to be because another file is defining some time-related thing, and that to solve it I should rearrange my include order. However, I've tried switching the order of includes around but the error remains.
Anyone know how to fix this?
Cheers.




Reply With Quote