[SDL] Graphics with SDL - they won't work
Alan Wolfe
atrix2 at cox.net
Wed May 19 10:07:49 PDT 2004
Hey Brian, do you declare your main like this?
int main(int argc,char **argv)
if not i bet that's the problem, could be the problem for the OS X guy too.
----- Original Message -----
From: "Brian Cody" <bjc9019 at rit.edu>
To: "A list for developers using the SDL library. (includes SDL-announce)"
<sdl at libsdl.org>
Sent: Wednesday, May 19, 2004 8:17 AM
Subject: RE: [SDL] Graphics with SDL - they won't work
> I actually do the same thing. I'm not sure how to get the system to
figure out which main to use otherwise (VC++). If I don't remove the define
(or don't undefine), I get linker errors no matter what I do (it seems).
When I do remove it I easily link and start from the main I want to. I was
really confused about the purpose of that define.
> I'm not sure if it's a console or win32 project. I know win32 is what
you're supposed to use but naturally console is preferable (I like
consoles).
>
> > I should mention, that I use what I strongly believe is a hack... Right
before
> > my main function, I go #undef main...
>
> >Um, can you give us the reason for this hack? If I understand correctly,
> >it should be a miracle that you can even link your program. I'm no OS X
> >programmer, so I haven't been following the relevant postings, but I'm
> >pretty sure that's not good under any operating system...
>
> >Bye,
> > Ben
>
> _
>
>
----------------------------------------------------------------------------
----
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
More information about the SDL
mailing list