[SDL] FW: Error when linking to SDL
Lemke, Wesley
Wesley.Lemke at LibertyMutual.com
Thu Jul 10 12:30:00 PDT 2003
I have the graphical version of gdb that comes with cygwin. I clicked
run and then viewed the stack. This is what it says:
_mingw_CRTStartup
Main
(main was highlighted in yellow).
Like I said I'm not good with gdb (especially this graphical
version....) let me know if there is anything else that will help.
-----Original Message-----
From: Gabriel Gambetta [mailto:ggambett at artech.com.uy]
Sent: Thursday, July 10, 2003 2:06 PM
To: sdl at libsdl.org
Subject: RE: [SDL] FW: Error when linking to SDL
Run it, see where does it segfault. Probably before main().
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
-----Original Message-----
From: Lemke, Wesley [mailto:Wesley.Lemke at LibertyMutual.com]
Sent: Jueves, 10 de Julio de 2003 03:43 p.m.
To: sdl at libsdl.org
Subject: RE: [SDL] FW: Error when linking to SDL
I am ignoring the warnings at compile time, I just put them in the
message in case they helped find the problem. The program, when linked
to SDL, seg faults. I am trying to use gdb now (I'm not real good with
it however). Anything in particular I should find out from gdb?
-----Original Message-----
From: Atrix Wolfe [mailto:atrix2 at cox.net]
Sent: Thursday, July 10, 2003 1:26 PM
To: sdl at libsdl.org
Subject: Re: [SDL] FW: Error when linking to SDL
gdb wouldnt help, hes saying hes getting compile time warnings :P
Lemke, these warnings look 100% harmless, i myself wouldnt worry about
them. Im not the kind of person to ignore compile warnings but this one
shouldnt give you any trouble.
----- Original Message -----
From: "Gabriel Gambetta" <ggambett at artech.com.uy>
To: <sdl at libsdl.org>
Sent: Thursday, July 10, 2003 11:05 AM
Subject: RE: [SDL] FW: Error when linking to SDL
gdb?
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
-----Original Message-----
From: Lemke, Wesley [mailto:Wesley.Lemke at LibertyMutual.com]
Sent: Jueves, 10 de Julio de 2003 02:52 p.m.
To: sdl at libsdl.org
Subject: [SDL] FW: Error when linking to SDL
No one has any ideas on where to start looking for the problem?
> -----Original Message-----
> From: Lemke, Wesley
> Sent: Wednesday, July 09, 2003 10:30 AM
> To: 'sdl at libsdl.org'
> Subject: Error when linking to SDL
>
> I compiled SDL with cygwin. When compiling I saw this warning quite a
> lot, but it went smooth besides it:
>
> cc1: warning: changing search order for system directory
> "/usr/include/mingw"
> cc1: warning: as it has already been specified as a non-system
> directory
>
> I created a simple program:
>
> #include <stdio.h>
>
> int main(int argc, char* argv[]){
> printf("Hello World\n");
>
> exit(0);
> }
>
> If I compile this like this:
>
> gcc -o test1.exe test1.c
>
> I get this output when I run it:
>
> Hello World
>
> With out changing the code at all, if I compile it like this:
>
> gcc -o test1.exe `sdl-config --cflags` `sdl-config --libs` test1.c
>
> The program will crash when I try to run it.
>
> Any ideas on what the problem could be?
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list