iostream problem

Started by
1 comment, last by ConorH 17 years, 1 month ago
Im trying to make a project in VSC++ 2005 EE using SDL and GameMonkey. #include "sdl/sdl.h" #include "include/gm/gmThread.h" #include <iostream> int main( int argc, char* args[] ) { //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Quit SDL SDL_Quit(); return 0; } I can get them to compile and run, but when I just include <iostream>, I get this error 1>------ Build started: Project: BlankSDL, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\wtime.inl(37) : error C2664: '_wctime32' : cannot convert parameter 1 from 'const time_t *' to 'const __time32_t *' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\wtime.inl(43) : error C2664: 'errno_t _wctime32_s(wchar_t *,size_t,const __time32_t *)' : cannot convert parameter 3 from 'const time_t *' to 'const __time32_t *' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>Build log was saved at "file://c:\Documents and Settings\Conor Haddock\My Documents\Visual Studio 2005\Projects\BlankSDL\BlankSDL\Debug\BuildLog.htm" 1>BlankSDL - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== What could I do to fix this?
Advertisement
I dont know SDL (Nor GameMonkey), but looking at the errors I suspect time_t is being redefined in one of the header files.

Include iostream before the others like so..
#include <iostream>#include "sdl/sdl.h" #include "include/gm/gmThread.h"


Tell us of any possible errors.
Thanks a lot. Worked as you predicted

Cheers Crypter!

This topic is closed to new replies.

Advertisement