Can't get SDL to work with VC++ Express 2005 Beta

Hello

Discussions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=256062 and
here: http://www.yakyak.org/viewtopic.php?t=21482

I’ve tried getting SDL to work with the new beta of VC++ Express 2005
(http://lab.msdn.microsoft.com/express/) but it simply won’t run. It
seems to die with an assert error, even when no SDL-specific functions
are called (I assume that has something to do with the main() function
being essentially overloaded by SDL). See the forum posts above for a
screenshot of the error box.

Can anyone else duplicate this? Has anyone found a way around it? I’ve
got it working in VC++7 before, so this must be something specific to
VC++8. Maybe it’s a bug in the beta version?

Cheers,

James

Hi.

Just a bit of a bump. I’ve now had confirmation from a couple of
people that they also get similar errors with VC++8, and so SDL apps
will not work when built with this version of VC++. This is even the
case when rebuilding the libraries from source. Unfortunately I still
have no idea why this.

I wonder - do the C# bindings for SDL work with VC# 8?

It’d be cool if this problem was fixed before the full version of
Visual Studio 8 is released in a few months.

JamesOn Mon, 12 Jul 2004 19:52:30 +0100, James Arthur <@James_Arthur> wrote:

Hello

Discussions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=256062 and
here: http://www.yakyak.org/viewtopic.php?t=21482

I’ve tried getting SDL to work with the new beta of VC++ Express 2005
(http://lab.msdn.microsoft.com/express/) but it simply won’t run. It
seems to die with an assert error, even when no SDL-specific functions
are called (I assume that has something to do with the main() function
being essentially overloaded by SDL). See the forum posts above for a
screenshot of the error box.

Can anyone else duplicate this? Has anyone found a way around it? I’ve
got it working in VC++7 before, so this must be something specific to
VC++8. Maybe it’s a bug in the beta version?

Cheers,

James

maybe your pirated beta is a problem :smiley:

James Arthur wrote:> Hi.

Just a bit of a bump. I’ve now had confirmation from a couple of
people that they also get similar errors with VC++8, and so SDL apps
will not work when built with this version of VC++. This is even the
case when rebuilding the libraries from source. Unfortunately I still
have no idea why this.

I wonder - do the C# bindings for SDL work with VC# 8?

It’d be cool if this problem was fixed before the full version of
Visual Studio 8 is released in a few months.

James

On Mon, 12 Jul 2004 19:52:30 +0100, James Arthur wrote:

Hello

Discussions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=256062 and
here: http://www.yakyak.org/viewtopic.php?t=21482

I’ve tried getting SDL to work with the new beta of VC++ Express 2005
(http://lab.msdn.microsoft.com/express/) but it simply won’t run. It
seems to die with an assert error, even when no SDL-specific functions
are called (I assume that has something to do with the main() function
being essentially overloaded by SDL). See the forum posts above for a
screenshot of the error box.

Can anyone else duplicate this? Has anyone found a way around it? I’ve
got it working in VC++7 before, so this must be something specific to
VC++8. Maybe it’s a bug in the beta version?

Cheers,

James


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Well, maybe not. Microsoft have released downloadable
versions of their upcoming Visual Studio Express products
(http://lab.msdn.microsoft.com/express/default.aspx).

/HenrikOn Wed, 14 Jul 2004 16:31:43 +0200 Florian Hufsky wrote:

maybe your pirated beta is a problem :smiley:

James Arthur wrote:

Hi.

Just a bit of a bump. I’ve now had confirmation from a couple of
people that they also get similar errors with VC++8, and so SDL apps
will not work when built with this version of VC++. This is even the
case when rebuilding the libraries from source. Unfortunately I
still have no idea why this.

I wonder - do the C# bindings for SDL work with VC# 8?

It’d be cool if this problem was fixed before the full version of
Visual Studio 8 is released in a few months.

James

On Mon, 12 Jul 2004 19:52:30 +0100, James Arthur wrote:

Hello

Discussions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=256062
and>here: http://www.yakyak.org/viewtopic.php?t=21482

I’ve tried getting SDL to work with the new beta of VC++ Express
2005>(http://lab.msdn.microsoft.com/express/) but it simply won’t
run. It>seems to die with an assert error, even when no SDL-specific
functions>are called (I assume that has something to do with the
main() function>being essentially overloaded by SDL). See the forum
posts above for a>screenshot of the error box.

Can anyone else duplicate this? Has anyone found a way around it?
I’ve>got it working in VC++7 before, so this must be something
specific to>VC++8. Maybe it’s a bug in the beta version?

Cheers,

James


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

ay. cool.

Henrik Algestam wrote:> Well, maybe not. Microsoft have released downloadable

versions of their upcoming Visual Studio Express products
(http://lab.msdn.microsoft.com/express/default.aspx).

/Henrik

On Wed, 14 Jul 2004 16:31:43 +0200 Florian Hufsky <@Florian_Hufsky> wrote:

maybe your pirated beta is a problem :smiley:

James Arthur wrote:

Hi.

Just a bit of a bump. I’ve now had confirmation from a couple of
people that they also get similar errors with VC++8, and so SDL apps
will not work when built with this version of VC++. This is even the
case when rebuilding the libraries from source. Unfortunately I
still have no idea why this.

I wonder - do the C# bindings for SDL work with VC# 8?

It’d be cool if this problem was fixed before the full version of
Visual Studio 8 is released in a few months.

James

On Mon, 12 Jul 2004 19:52:30 +0100, James Arthur wrote:

Hello

Discussions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=256062

and>here: http://www.yakyak.org/viewtopic.php?t=21482

I’ve tried getting SDL to work with the new beta of VC++ Express

2005>(http://lab.msdn.microsoft.com/express/) but it simply won’t
run. It>seems to die with an assert error, even when no SDL-specific
functions>are called (I assume that has something to do with the
main() function>being essentially overloaded by SDL). See the forum
posts above for a>screenshot of the error box.

Can anyone else duplicate this? Has anyone found a way around it?

I’ve>got it working in VC++7 before, so this must be something
specific to>VC++8. Maybe it’s a bug in the beta version?

Cheers,

James


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

Well, maybe not. Microsoft have released downloadable
versions of their upcoming Visual Studio Express products
(http://lab.msdn.microsoft.com/express/default.aspx).

I’ve tried getting SDL to work with the new beta of VC++ Express
2005>(http://lab.msdn.microsoft.com/express/) but it simply won’t
run.

:wink:

It’s a fairly big jump from VC++7 from what I can gather. Much
improved interface. I’ve heard that the Express editions will be
released at around $50, with Standard maybe at around $100. Only
downside is that it has a “thou shalt use .Net” attitude. You have to
download the Win32 SDK if you don’t want to create programs that use
the Windows API. Oh, and the fact that it breaks SDL, that is :frowning:

JamesOn Wed, 14 Jul 2004 17:51:56 +0200, Henrik Algestam wrote:

On Mon, 12 Jul 2004 19:52:30 +0100, James Arthur <@James_Arthur> wrote:

James Arthur <teamonkey gmail.com> writes:

I’ve tried getting SDL to work with the new beta of VC++ Express 2005
(http://lab.msdn.microsoft.com/express/) but it simply won’t run. It
seems to die with an assert error, even when no SDL-specific functions
are called (I assume that has something to do with the main() function
being essentially overloaded by SDL). See the forum posts above for a
screenshot of the error box.

Just wanted to remind the list that this is still a problem :frowning: …the latest
Visual Studio doesn’t create working SDL programs. The obscure assert that
exits a program on start indicated in this thread seems to point to the new
Runtime with VC8…anyone have any fixes for this yet?

I experienced the same problem, removed the dependancies with SDLmain, added
the following lines:

#pragma comment(linker,"/ENTRY:mainCRTStartup")
#pragma comment(linker,"/SUBSYSTEM:WINDOWS")

and after that my program worked fine. So, it should be a problem with
SDLmain, but I have no idea what it is.On Monday 02 August 2004 17:14, Kevin Watters wrote:

Just wanted to remind the list that this is still a problem :frowning: …the
latest Visual Studio doesn’t create working SDL programs. The obscure
assert that exits a program on start indicated in this thread seems to
point to the new Runtime with VC8…anyone have any fixes for this yet?


Ignacio Casta?o
@Ignacio_Castano

Confirmed.

Thanks for that - it made my Tuesday! :slight_smile:

JamesOn Mon, 2 Aug 2004 19:08:23 -0700, Ignacio Casta?o wrote:

I experienced the same problem, removed the dependancies with SDLmain, added
the following lines:

#pragma comment(linker,"/ENTRY:mainCRTStartup")
#pragma comment(linker,"/SUBSYSTEM:WINDOWS")

and after that my program worked fine. So, it should be a problem with
SDLmain, but I have no idea what it is.

James Arthur <teamonkey gmail.com> writes:

I’ve tried getting SDL to work with the new beta of VC++ Express 2005
(http://lab.msdn.microsoft.com/express/) but it simply won’t run. It
seems to die with an assert error, even when no SDL-specific functions
are called (I assume that has something to do with the main() function
being essentially overloaded by SDL). See the forum posts above for a
screenshot of the error box.

Just wanted to remind the list that this is still a problem :frowning: …the latest
Visual Studio doesn’t create working SDL programs. The obscure assert that
exits a program on start indicated in this thread seems to point to the new
Runtime with VC8…anyone have any fixes for this yet?

I just downloaded the Express Beta 1, grabbed the Microsoft SDK, and the
DirectX SDK, and just build SDL in debug and release mode under the IDE.
Aside from not being able to compile the resources and complaining about
all the stdlib functions being deprecated, it all went smoothly. I built
the graywin test app and ran it with no problems, using the DLL I just built.

Is the problem in SDL built with Express, or with apps built with Express
and then linked with the old SDLmain.lib?

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