Current version

v1.10.4 (stable)

Navigation

Main page
Archived news
Downloads
Documentation
   Capture
   Compiling
   Processing
   Crashes
Features
Filters
Plugin SDK
Knowledge base
Contact info
Forum
 
Other projects
   Altirra

Search

Archives

01 Dec - 31 Dec 2013
01 Oct - 31 Oct 2013
01 Aug - 31 Aug 2013
01 May - 31 May 2013
01 Mar - 31 Mar 2013
01 Feb - 29 Feb 2013
01 Dec - 31 Dec 2012
01 Nov - 30 Nov 2012
01 Oct - 31 Oct 2012
01 Sep - 30 Sep 2012
01 Aug - 31 Aug 2012
01 June - 30 June 2012
01 May - 31 May 2012
01 Apr - 30 Apr 2012
01 Dec - 31 Dec 2011
01 Nov - 30 Nov 2011
01 Oct - 31 Oct 2011
01 Sep - 30 Sep 2011
01 Aug - 31 Aug 2011
01 Jul - 31 Jul 2011
01 June - 30 June 2011
01 May - 31 May 2011
01 Apr - 30 Apr 2011
01 Mar - 31 Mar 2011
01 Feb - 29 Feb 2011
01 Jan - 31 Jan 2011
01 Dec - 31 Dec 2010
01 Nov - 30 Nov 2010
01 Oct - 31 Oct 2010
01 Sep - 30 Sep 2010
01 Aug - 31 Aug 2010
01 Jul - 31 Jul 2010
01 June - 30 June 2010
01 May - 31 May 2010
01 Apr - 30 Apr 2010
01 Mar - 31 Mar 2010
01 Feb - 29 Feb 2010
01 Jan - 31 Jan 2010
01 Dec - 31 Dec 2009
01 Nov - 30 Nov 2009
01 Oct - 31 Oct 2009
01 Sep - 30 Sep 2009
01 Aug - 31 Aug 2009
01 Jul - 31 Jul 2009
01 June - 30 June 2009
01 May - 31 May 2009
01 Apr - 30 Apr 2009
01 Mar - 31 Mar 2009
01 Feb - 29 Feb 2009
01 Jan - 31 Jan 2009
01 Dec - 31 Dec 2008
01 Nov - 30 Nov 2008
01 Oct - 31 Oct 2008
01 Sep - 30 Sep 2008
01 Aug - 31 Aug 2008
01 Jul - 31 Jul 2008
01 June - 30 June 2008
01 May - 31 May 2008
01 Apr - 30 Apr 2008
01 Mar - 31 Mar 2008
01 Feb - 29 Feb 2008
01 Jan - 31 Jan 2008
01 Dec - 31 Dec 2007
01 Nov - 30 Nov 2007
01 Oct - 31 Oct 2007
01 Sep - 30 Sep 2007
01 Aug - 31 Aug 2007
01 Jul - 31 Jul 2007
01 June - 30 June 2007
01 May - 31 May 2007
01 Apr - 30 Apr 2007
01 Mar - 31 Mar 2007
01 Feb - 29 Feb 2007
01 Jan - 31 Jan 2007
01 Dec - 31 Dec 2006
01 Nov - 30 Nov 2006
01 Oct - 31 Oct 2006
01 Sep - 30 Sep 2006
01 Aug - 31 Aug 2006
01 Jul - 31 Jul 2006
01 June - 30 June 2006
01 May - 31 May 2006
01 Apr - 30 Apr 2006
01 Mar - 31 Mar 2006
01 Feb - 29 Feb 2006
01 Jan - 31 Jan 2006
01 Dec - 31 Dec 2005
01 Nov - 30 Nov 2005
01 Oct - 31 Oct 2005
01 Sep - 30 Sep 2005
01 Aug - 31 Aug 2005
01 Jul - 31 Jul 2005
01 June - 30 June 2005
01 May - 31 May 2005
01 Apr - 30 Apr 2005
01 Mar - 31 Mar 2005
01 Feb - 29 Feb 2005
01 Jan - 31 Jan 2005
01 Dec - 31 Dec 2004
01 Nov - 30 Nov 2004
01 Oct - 31 Oct 2004
01 Sep - 30 Sep 2004
01 Aug - 31 Aug 2004

Stuff

Powered by Pivot  
XML: RSS feed 
XML: Atom feed 

§ Conflict between VS2010 beta 2 and old DirectX SDKs

I've just started evaluating Visual Studio 2010 beta 2, and pretty quickly ran into this problem:

------ Build started: Project: system, Configuration: Debug Win32 ------
  Error.cpp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: syntax error : identifier '__RPC__out_xcount_part'
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: unable to recover from previous error(s); stopping compilation

Turning on /showIncludes reveals the cause. It turns out that this is caused by a conflict between older versions of the DirectX SDK and the Windows 7 SDK that ships with VS2010 beta 2. Unfortunately, Microsoft put rpcsal.h into both SDKs, which causes disaster:

Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\vfw.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mmsystem.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\pshpack1.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\poppack.h
Note: including file: c:\program files (x86)\microsoft sdks\windows\v7.0a\include\pshpack8.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mmreg.h
Note: including file: c:\program files (x86)\microsoft sdks\windows\v7.0a\include\pshpack1.h
Note: including file: c:\program files (x86)\microsoft sdks\windows\v7.0a\include\poppack.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ole2.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\pshpack8.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objbase.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpc.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcdce.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcdcep.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcnsi.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcnterr.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcasync.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcndr.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\pshpack8.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\rpcnsip.h
Note: including file: I:\dx9sdk2\include\rpcsal.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\poppack.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\pshpack8.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wtypes.h
Note: including file: c:\program files (x86)\microsoft sdks\windows\v7.0a\include\guiddef.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\unknwn.h
Note: including file: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h

Switching to a newer version of the DirectX SDK fixes the problem.

Comments

Comments posted:


The code runs on from the post border into the menu.

Xenonym - 24 10 09 - 01:58


Too lazy to look up how to fix (would require a force-wrap width option in CSS).

Phaeron - 24 10 09 - 07:09


@Phaeron
add an overflow:auto instead. Wrapping may cause display and even copy/paste issues on some clients (1 line becoming multiple). overflow:auto should make graphical clients add a horizontal scrollbar, if needed, instead.

As for the actual issue at hand - darn compatibility breaks. I suspect that MSFT's recommended development flow would begin with "make sure you are using the latest SDKs" anyway, though.

Rick - 24 10 09 - 14:55


This can't be fixed by re-ordering the include dirs?

asf - 24 10 09 - 21:19


Risky, since there's no guarantee that rpcsal.h from the V7.0A Platform SDK would work with the older DXSDK headers. I had a newer version of the DXSDK already installed, so I never bothered testing that case.

Phaeron - 24 10 09 - 21:31


How is VirtualDub when compiled using VS2010 beta 2? Any faster? Any better? Any other takes regarding the compiler?

Avi Vahl - 27 10 09 - 09:15


I'm not really seeing much of an improvement at all, although I don't compile for SSE/SSE2 where some improvements were supposedly made. VirtualDub has too much assembly language in critical paths to benefit much anyway; Altirra could potentially benefit more since it spends a lot of time in its C++ emulation core, but I just did a test and I don't see any difference at all in frame rate (500-700 fps PAL in warp mode).

Phaeron - 27 10 09 - 19:56


For me, beta1 crashed in every 10 minutes, beta2 does not, that's a huge improvement.

Gabest - 31 10 09 - 08:57


Thanks a lot! This post solved my problem! By adding the /showIncludes flag I was able to identify that rpcsal.h was being included from
C:\Program Files\Microsoft DirectX SDK (February 2007)\include\rpcsal.h.

Rolando - 27 09 10 - 07:10

Comment form


Please keep comments on-topic for this entry. If you have unrelated comments about VirtualDub, the forum is a better place to post them.
Name:  
Remember personal info?

Email (Optional):
Your email address is only revealed to the blog owner and is not shown to the public.
URL (Optional):
Comment: /

An authentication dialog may appear when you click Post Comment. Simply type in "post" as the user and "now" as the password. I have had to do this to stop automated comment spam.



Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.