I want to use a complete effect file, and from what I read about loading effect files, I need the library Effects11.lib to do this.
Next, I found out, I have to compile this library myself (as stated here: http://msdn.microsof...3(v=vs.85).aspx , Section "Requirements").
So I pay a visit to the DirectX SDK directory ( which is in my case located at "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)") and open .\Samples\C++\Effects11\Effects11_2010.sln , as I am using Visual Studio 2010.
Then I just try to compile, but I get a bunch of errors (Should I get errors at all, when compiling Microsoft's Sources???), see the complete output listed below.
1>------ Erstellen gestartet: Projekt: Effects11, Konfiguration: Release Win32 ------
1>Der Buildvorgang wurde am 10.03.2012 01:49:21 gestartet.
1>InitializeBuildStatus:
1> Aktualisieren des Timestamps von "Release\Effects11.unsuccessfulbuild".
1>ClCompile:
1> d3dx11dbg.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> d3dxGlobal.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectAPI.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectLoad.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectNonRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectReflection.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1> EffectRuntime.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: Syntaxfehler: Bezeichner '__RPC__out_xcount_part'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: Syntaxfehler: ')'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
1>
1>Fehler beim Erstellen
1>
1>Verstrichene Zeit 00:00:01.33
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
While I don't understand these completely, my investigation has shown that I was missing the Windows 7 SDK. Ouch. So I downloaded it, still in the hope these errors might vanish. No luck. Being on a x64 System, I additionaly gave the x64 WINDOWS 7 SDK a try, nothing improved.
So what is it, I'm missing? Can anyone help me here? Or can anyone point me to the compiled library?
Maybe my system information can be helpful here:
IDE: Visual Studio 2010;
OS: Server 2008R2 SP1;