Skip to main content
gamedev.net
🔒 Locked

iostream problem

Started by ConorH Mar 2, 2007 at 12:08 PM 1 replies 2.5k views
Original Post
ConorH
ConorH
Im trying to make a project in VSC++ 2005 EE using SDL and GameMonkey. #include "sdl/sdl.h" #include "include/gm/gmThread.h" #include 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 , 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?
Crypter
Crypter
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.
ConorH
ConorH
Thanks a lot. Worked as you predicted

Cheers Crypter!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.