[SDL] Re: [Newbie] SDL 1.1.4 VS 1.1.6 with VC++5

Phoenix Kokido kokido at postmark.net
Thu Jan 4 07:23:03 PST 2001


I think SDL is pretty picky about what main is, is your main declared
like:

int main(int argc, char *argv[])

Even if you don't use the command line arguments this is proper form.

> 
> When changing to Debug Multithreaded DLL or Multithreaded DLL the
> error becomes:
> 
> --------------------Configuration: foo - Win32 Debug--------------------
> Compiling...
> main.cpp
> C:\Code\foo\main.cpp(11) : error C2561: 'SDL_main' : function must return a

> value
> Error executing cl.exe.
> 
> foo.exe - 1 error(s), 0 warning(s)
> 
> I always used Debug Multithreaded or Multithreaded with 1.1.4-, so
> I wasn't aware of the change. :) Thanks.
> 
> 
> 
>                      __
>           Fabio   " '- nowDruid "  Franchello
>                    ---'---------
>            ---  snowdruid at tiscalinet.it  ---
> 



More information about the SDL mailing list