SDL fails to load textures

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn’t want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with no
console messages. Even though I copied the code here almost exactly
http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php
SDL still wanted to be disagreeable.

Any advice?

William <williamowenfowlk gmail.com> writes:

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn’t want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with no
console messages. Even though I copied the code here almost exactly
http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php
SDL still wanted to be disagreeable.

Any advice?

Shoot, forgot to mention, I’m currently using the command line version of
MinGW and the g++ compiler. I’m using mingw32-make to compile the files.

Thought it might seem painful, I’d say you should try to describe your
setup in more detail. For example, what system are you working with? What
version of SDL are you using? I recommend you be as detailed as possible,
while staying as concise as possible.

Also, have you observed any error or log messages that could provide hints?
The Lazy Foo code does have some minimal error checking.

Also, did you make an attempt to debug this program using GDB or something
else, possibly Visual Studio? Doing this, you could try to figure out how
much of the program is working as intended, ie verify that texture data is
getting loaded and pixel values are what you expect them to be (try loading
all-black and all-white textures for instance).

Good luck.On Sat, Jul 2, 2016 at 1:30 PM, William wrote:

William <williamowenfowlk gmail.com> writes:

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn’t want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with
no
console messages. Even though I copied the code here almost exactly

http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php

SDL still wanted to be disagreeable.

Any advice?

Shoot, forgot to mention, I’m currently using the command line version of
MinGW and the g++ compiler. I’m using mingw32-make to compile the files.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org