Sign in to follow this  
ConorH

iostream problem

Recommended Posts

ConorH    148
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?

Share this post


Link to post
Share on other sites
Crypter    748
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.

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