Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't include D2D1
    text
    copied!<p>I feel like this should work...</p> <pre><code>#include &lt;d2d1.h&gt; int main () { return 0; }; </code></pre> <p>...but it comes up with a bunch of this...</p> <pre><code>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|286|error: '__in' has not been declared| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|286|error: expected ',' or '...' before '&amp;' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|293|error: '__in' has not been declared| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|293|error: expected ',' or '...' before '&amp;' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|299|error: '__in' has not been declared| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|299|error: expected ',' or '...' before '&amp;' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|307|error: '__in' has not been declared| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\dxgi.h|307|error: expected ',' or '...' before '&amp;' token| </code></pre> <p>...and so on.</p> <p>I'm using MinGW on Code::Blocks compiling C++ for Windows. Right now my only compiler option is <code>-mingw32</code>. If you know what this result might mean and how I can fix it in the C::B options or where ever I need to change something, that would really help.</p> <h1>-- UPDATE --</h1> <p>I blank-defined what I assumed to be troublesome Visual Studio macros.</p> <pre><code>#define __in #define __out #define __in_opt #define __inout #define __in_bcount(x) #define __in_ecount(x) #define __out_ecount(x) #define __out_bcount(x) #define __out_ecount_part_opt(x,y) #define __out_bcount_opt(x) #define __in_bcount_opt(x) #define __in_ecount_opt(x) #define __out_ecount_opt(x) #define __out_opt #define __inout_opt #include &lt;d2d1.h&gt; int main () { return 0; }; </code></pre> <p>However, now in <code>d2d1.h</code> I'm still getting this issue:</p> <pre><code>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d2d1.h|1246|error: expected initializer before ':' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d2d1.h|1269|error: expected initializer before ':' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d2d1.h|1333|error: expected initializer before ':' token| C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d2d1.h|1374|error: expected initializer before ':' token| ||=== Build finished: 4 errors, 0 warnings (0 minutes, 2 seconds) ===| </code></pre> <p>Since it's not a preprocessor issue, I want even less to tamper, since I'd have to change around the actual header. Any ideas on how to fix this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload