From: Lemke, Wesley [mailto:Wesley.Lemke@LibertyMutual.com]
Sent: Jueves, 10 de Julio de 2003 04:30 p.m.
To: sdl at libsdl.org
Subject: RE: [SDL] FW: Error when linking to SDL
I just figured out how to run the debugger in text mode. Here is the
output:
[18 NA900002 at LIBERTY-JDSFZXH (14:29:22) sdlTest] gdb -nw test1.exe GNU
gdb 5.0 (20010428-3) Copyright 2001 Free Software Foundation, Inc. GDB
is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions. Type “show copying” to see the conditions. There is
absolutely no warranty for GDB. Type “show warranty” for details. This
GDB was configured as “i686-pc-cygwin”…
(gdb) run
Starting program: /home/NA900002/code/c/sdlTest/test1.exe
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0 0x00000000 in ?? ()
(gdb)
It doesn’t mean much to me, but doesn’t look pretty.
-----Original Message-----
From: Gabriel Gambetta [mailto:ggambett@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@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@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 
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: ggambett@artech.com.uy (Gabriel Gambetta)
To:
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@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
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl