SDL 1.2.12 apps won't run when compiled from Visual Studio 2005

Using this set up method:
lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/

I’ve gotten SDL applications to compile and run just fine with VC++ 8 Express.

Yesterday I got an e-mail from one of my site visitors saying they got the
program to compile but it would get an error when running it, but when they used
the old versions of SDL available on my FAQ page, it worked fine.

I upgraded my SDL install and I tested the Dev C++ upgrade. It went off without
a hitch.

Then I reinstalled VC++ 8e and tried setting up the program.

It compiled and I no longer had to ignore uuid.lib, but I did have to 64-bit
compatibility warnings:
gamedev.net/community/forums/topic.asp?topic_id=455796

I ran it and sure enough I got the error:

I tested it with SDL_image, SDL_ttf, and SDL_mixer and it managed to compile,
but again it won’t run.

So what’s changed since the last SDL version, and how do I fix this?

Lazy Foo wrote:

I ran it and sure enough I got the error:
http://lazyfoo.net/oy.png

I tested it with SDL_image, SDL_ttf, and SDL_mixer and it managed to compile,
but again it won’t run.

So what’s changed since the last SDL version, and how do I fix this?

Did you check the event log like the error said? It should give you more
detail about what it’s complaining about.

Ken Paulson <list-ken drunkenhyena.com> writes:

Did you check the event log like the error said? It should give you more
detail about what it’s complaining about.

I rarely use Visual Studio, so I’ve never used an event log. I googled around
and the event log isn’t where the sites said its supposed to be.

I know I’m not the only having this problem as I’ve seen other GDnet topics
about it. The set up procedure for SDL has pretty much stayed the same since
VC++ 6.0. What’s changed since then?

So what’s changed since the last SDL version, and how do I fix this?

I ran through a sample hello world with Visual C++ 2005 Express Edition:
(temporary url)

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Lazy Foo wrote:

Ken Paulson <list-ken drunkenhyena.com> writes:

Did you check the event log like the error said? It should give you more
detail about what it’s complaining about.

I rarely use Visual Studio, so I’ve never used an event log. I googled around
and the event log isn’t where the sites said its supposed to be.

I know I’m not the only having this problem as I’ve seen other GDnet topics
about it. The set up procedure for SDL has pretty much stayed the same since
VC++ 6.0. What’s changed since then?

The event log isn’t a Visual Studio thing, it’s a Windows thing. Control
Panel -> Administrative Tools -> Event Viewer.

It’s likely not finding a DLL and/or a manifest file. By checking the
event viewer you’ll know exactly what it’s complaining about. For each
occurrence of the error there will likely be multiple errors in the
event log so you’ll need to read them all.

The issue likely has nothing to do with SDL itself and is related to
issues with the VS2005 runtime.

Thanks I’m in the process of installing everything so I can update my tutorials.
I’ll post here if I run into any trouble.

I’ve noticed the file is named “SDL-devel-1.2.12-VC8.zip”. Does this mean it is
no longer compatible with Visual Studio 2003?

I don’t know. I don’t have access to it, so I’m not sure if it’ll work.

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment