Compile errors with latest SDL 1.3

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the “win” structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn’t seem to
be included anymore, at least with the SDL VS 2005 build.

KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you
still having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Will do. I’m surprised this worked before without these in the pre-build
steps.From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the “win” structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn’t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Ah, I figured out why it built before, but didn’t build now. The Pre-Build
step checks to see if SDL_config.h exists. If it already exists it doesn’t
bother to copy over the .default file. This means that anytime that the
.default file changes you need to manually delete the SDL_config.h file
prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on the
newsgroup.

Sam, I’ll send you the patch for the VS2005 vcproj file with the new files
added.

KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the “win” structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn’t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?

Mason________________________________
From: sdl@programminggames.com (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now. The Pre-Build step
checks to see if SDL_config.h exists. If it already exists it doesn?t bother to
copy over the .default file. This means that anytime that the .default file
changes you need to manually delete the SDL_config.h file prior to building with
Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on the
newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From:sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes SDL_config_windows.h
correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the project as
well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!
On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:
It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to be
included anymore, at least with the SDL VS 2005 build.

Ken

From:sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!
On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:
SDL_windowswindow.c
c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039: ‘win’
: is not a member of ‘‘
c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of
’’

SDL_windowsevents.c
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039: ‘win’
: is not a member of ‘‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

SDL_thread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists. It should just copy the darn thing every time. This would eliminate this annoying bug.

KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008. Any status update on getting the patch ready?

Mason


From: @Ken_Rogoway (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now. The Pre-Build step checks to see if SDL_config.h exists. If it already exists it doesn?t bother to copy over the .default file. This means that anytime that the .default file changes you need to manually delete the SDL_config.h file prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on the newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files added.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those projects.

In the 2008 and 2010 projects there’s a custom build rule to copy SDL_config.h.default to SDL_config.h, which then includes SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005 project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039: ‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of '<unnamed-tag>'

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039: ‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of '<unnamed-tag>'

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039: ‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of '<unnamed-tag>'

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039: ‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of '<unnamed-tag>'

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039: ‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of '<unnamed-tag>'

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error : Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error : Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Does Visual Studio do dependency checking based on timestamp or file
contents? If it’s the former, then that would cause everything to be
rebuilt every time.

Is there a way to do “copy if changed” in batch scripts?On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway wrote:

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists. It
should just copy the darn thing every time. This would eliminate this
annoying bug.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?

Mason

From: Ken Rogoway
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now. The Pre-Build
step checks to see if SDL_config.h exists. If it already exists it doesn?t
bother to copy over the .default file. This means that anytime that the
.default file changes you need to manually delete the SDL_config.h file
prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on
the newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you
still having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

OK, that went smoothly. Thanks! :)________________________________
From: sdl@programminggames.com (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists. It
should just copy the darn thing every time. This would eliminate this annoying
bug.

Ken

From:sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?

Mason


From: sdl at programminggames.com (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3
Ah, I figured out why it built before, but didn?t build now. The Pre-Build step
checks to see if SDL_config.h exists. If it already exists it doesn?t bother to
copy over the .default file. This means that anytime that the .default file
changes you need to manually delete the SDL_config.h file prior to building with
Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on the
newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From:sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes SDL_config_windows.h
correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the project as
well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!
On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:
It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to be
included anymore, at least with the SDL VS 2005 build.

Ken

From:sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!
On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:
SDL_windowswindow.c
c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039: ‘win’
: is not a member of ‘‘
c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of
’’

SDL_windowsevents.c
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039: ‘win’
: is not a member of '‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’'
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039: ‘win’
: is not a member of ‘‘
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

SDL_thread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

looks like you might be able to use the XCOPY command with /d flag:

/d[:mm-dd-yyyy] : Copies source files changed on or after the
specified date only. If you do not include a mm-dd-yyyy value, xcopy
copies all Source files that are newer than existing Destination
files. This command-line option allows you to update files that have
changed.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true

JohnOn Thu, Jan 27, 2011 at 2:25 PM, Sam Lantinga wrote:

Does Visual Studio do dependency checking based on timestamp or file
contents?? If it’s the former, then that would cause everything to be
rebuilt every time.

Is there a way to do “copy if changed” in batch scripts?

On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway wrote:

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists.? It
should just copy the darn thing every time.? This would eliminate this
annoying bug.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008.? Any status update on getting
the patch ready?

Mason


From: Ken Rogoway
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now.? The
Pre-Build step checks to see if SDL_config.h exists.? If it already exists
it doesn?t bother to copy over the .default file.? This means that anytime
that the .default file changes you need to manually delete the SDL_config.h
file prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on
the newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked
out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project.? That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem
to be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you
still having issues?? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of
’’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
:? Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
:? Need thread implementation for this platform


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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

Visual studio will only rebuild the files if the file has changed its
timestamp. Copying a file like SDL_config.h.default to SDL_config.h does
NOT change the date/time stamp, so doing this step every time will NOT cause
it to rebuild everything unless the actual .default file is newer (which is
what we want).

Just change the IF EXISTS section to just copy the file every time and it
will work the way we need it to work.

Just use this line in the pre-build step:

copy /Y $(ProjectDir)…\include\SDL_config_windows.h
$(ProjectDir)…\include\SDL_config.h

Sam, I can make the changes to all of the vcproj files and send you a patch
if you want.

KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Thursday, January 27, 2011 2:25 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Does Visual Studio do dependency checking based on timestamp or file
contents? If it’s the former, then that would cause everything to be
rebuilt every time.

Is there a way to do “copy if changed” in batch scripts?

On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway <@Ken_Rogoway> wrote:

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists. It
should just copy the darn thing every time. This would eliminate this
annoying bug.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?

Mason


From: @Ken_Rogoway (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn’t build now. The Pre-Build
step checks to see if SDL_config.h exists. If it already exists it doesn’t
bother to copy over the .default file. This means that anytime that the
.default file changes you need to manually delete the SDL_config.h file
prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on the
newsgroup.

Sam, I’ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the “win” structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn’t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

In order to use the /d option you would need to know the date/time of the
file.

There is NO harm in just copying the file over every time as a pre-build
step. The COPY command does NOT change the date/time of the dest file, it
gets that info from the source file.

Ken> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of John Magnotti
Sent: Thursday, January 27, 2011 2:40 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

looks like you might be able to use the XCOPY command with /d flag:

/d[:mm-dd-yyyy] : Copies source files changed on or after the
specified date only. If you do not include a mm-dd-yyyy value, xcopy
copies all Source files that are newer than existing Destination
files. This command-line option allows you to update files that have
changed.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/xcopy.mspx?mfr=true

John

On Thu, Jan 27, 2011 at 2:25 PM, Sam Lantinga wrote:

Does Visual Studio do dependency checking based on timestamp or file
contents?? If it’s the former, then that would cause everything to be
rebuilt every time.

Is there a way to do “copy if changed” in batch scripts?

On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway <@Ken_Rogoway> wrote:

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists.?
It

should just copy the darn thing every time.? This would eliminate this
annoying bug.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008.? Any status update on getting
the patch ready?

Mason


From: Ken Rogoway <@Ken_Rogoway>
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now.? The
Pre-Build step checks to see if SDL_config.h exists.? If it already
exists

it doesn?t bother to copy over the .default file.? This means that
anytime

that the .default file changes you need to manually delete the
SDL_config.h

file prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on
the newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new
files

added.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked
out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the
SDL_VS2005

project.? That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem
to be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you
still having issues?? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of
’’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

??? c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
’’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
:? Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
:? Need thread implementation for this platform


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


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

Sure, that would be great.

Thanks!On Thu, Jan 27, 2011 at 1:17 PM, Ken Rogoway wrote:

Visual studio will only rebuild the files if the file has changed its
timestamp. Copying a file like SDL_config.h.default to SDL_config.h does
NOT change the date/time stamp, so doing this step every time will NOT cause
it to rebuild everything unless the actual .default file is newer (which is
what we want).

Just change the IF EXISTS section to just copy the file every time and it
will work the way we need it to work.

Just use this line in the pre-build step:

copy /Y $(ProjectDir)…\include\SDL_config_windows.h
$(ProjectDir)…\include\SDL_config.h

Sam, I can make the changes to all of the vcproj files and send you a patch
if you want.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Thursday, January 27, 2011 2:25 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Does Visual Studio do dependency checking based on timestamp or file
contents? If it’s the former, then that would cause everything to be
rebuilt every time.

Is there a way to do “copy if changed” in batch scripts?

On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway wrote:

Delete the file /Include/SDL_config.h

Then build again.

Really, the pre-build step should NOT check to see if the file exists. It
should just copy the darn thing every time. This would eliminate this
annoying bug.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM

To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?

Mason

From: Ken Rogoway
Subject: Re: [SDL] Compile errors with latest SDL 1.3

Ah, I figured out why it built before, but didn?t build now. The Pre-Build
step checks to see if SDL_config.h exists. If it already exists it doesn?t
bother to copy over the .default file. This means that anytime that the
.default file changes you need to manually delete the SDL_config.h file
prior to building with Visual Studio (2005, 2008 or 2010).

Since this may affect other people I figured it would be good to post on
the newsgroup.

Sam, I?ll send you the patch for the VS2005 vcproj file with the new files
added.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.

In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.

In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.

Feel free to send me a patch for 2005, once you have everything worked out.

Thanks!

On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway wrote:

It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the ?win? structure errors.

The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.

Both of these are defined in SDL_config_windows.h, but that doesn?t seem to
be included anymore, at least with the SDL VS 2005 build.

Ken

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
*On Behalf Of *Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3

I just built the current snapshot on Windows with no problems, are you
still having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/

Thanks!

On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:

SDL_windowswindow.c

c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of

‘’

SDL_windowsevents.c

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’

    c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of

‘’

SDL_thread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform

SDL_systhread.c

c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error
: Need thread implementation for this platform


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC