mingw - Can't include D2D1 -


i feel should work...

#include <d2d1.h> int main () {     return 0; }; 

...but comes bunch of this...

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 '&' 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 '&' 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 '&' 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 '&' token| 

...and on.

i'm using mingw on code::blocks compiling c++ windows. right compiler option -mingw32. if know result might mean , how can fix in c::b options or ever need change something, help.

-- update --

i blank-defined assumed troublesome visual studio macros.

#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 <d2d1.h> int main () {     return 0; }; 

however, in d2d1.h i'm still getting issue:

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) ===| 

since it's not preprocessor issue, want less tamper, since i'd have change around actual header. ideas on how fix this?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -