logo       

MSVC8 (VS2005) Compile: msg#00013

lib.openal.devel

Subject: MSVC8 (VS2005) Compile

Hi,

For quite a number of months now, since at least Nov last year, I have had to make a very minor code changes in OpenAl-Windows/Router/alc.cpp to compile it in my Windows XP using MSVC8 (VS2005 Express) ... I have to un-define HAVE_VISTA_HEADERS, since I don't have these installed ...

#ifndef __MINGW32__
#define _CRT_SECURE_NO_DEPRECATE // get rid of sprintf security warnings on VS2005
#undef HAVE_VISTA_HEADERS
#endif

Attached below is a diff -u of my latest SVN (revision 1426) and my changed file ... But I would prefer such a define of HAVE_VISTA_HEADERS be only in the MSVC definitions, rather than hard coded as it is ... I am sure I am NOT the only user who has not yet installed 'vista' headers ...

Maybe the headers are now available in the latest Platform SDK, if there is one, but they do not appear in the Windows Server 2003 R2 Platform SDK that I have ... Do others have a later PSDK? What is the URI?

I also had trouble with atlconv.h, until I added -
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\atl
to my MSVC8 include files paths ...

Now OpenAL (and alut) build and work like a charm ;=)) Many thanks to all those who put this together ...

Regards,

Geoff.

<diff>
--- C:\FGCVS\openal\OpenAL-Windows\Router\alc.cpp Sun Feb 11 18:22:23 2007
+++ c:\FG\12\openal\OpenAL-Windows\Router\alc.cpp Sun Mar 18 19:22:57 2007
@@ -20,7 +20,7 @@

#ifndef __MINGW32__
#define _CRT_SECURE_NO_DEPRECATE // get rid of sprintf security warnings on VS2005
-#define HAVE_VISTA_HEADERS
+#undef HAVE_VISTA_HEADERS
#endif

#include <stdlib.h>
</diff>

EOF - openal-04.doc

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise