2 Replies - 687 Views - Last Post: 27 December 2013 - 01:31 AM Rate Topic: -----

#1 Gabarel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 19-August 13

Conflict errors in include dxgi1_2.h

Posted 18 December 2013 - 02:25 AM

Hi everyone, I'm trying to catch the Present1() for the DirectX11.1, while I include the header dxgi1_2.h I got this errors, I also included dxgi.h due to the fact that I derive the class I called DirectX11Mode1 from DirectX10Mode, they are very similar in the procedure for catching the Present() function.

In file included from DirectX11Mode1.cpp:28:0:
dxsdk/include/dxgi1_2.h:954:13: error: ‘_In_reads_’ has not been declared
dxsdk/include/dxgi1_2.h:954:36: error: conflicting declaration ‘int NumResources’
dxsdk/include/dxgi1_2.h:952:18: error: ‘NumResources’ has a previous declaration as ‘UINT NumResources’
dxsdk/include/dxgi1_2.h:954:38: error: expected ‘,’ or ‘...’ before ‘IDXGIResource’
dxsdk/include/dxgi1_2.h:962:13: error: ‘_In_reads_’ has not been declared
dxsdk/include/dxgi1_2.h:962:36: error: conflicting declaration ‘int NumResources’
dxsdk/include/dxgi1_2.h:960:18: error: ‘NumResources’ has a previous declaration as ‘UINT NumResources’
dxsdk/include/dxgi1_2.h:962:38: error: expected ‘,’ or ‘...’ before ‘IDXGIResource’
Makefile:69: recipe for target `DirectX11Mode1.o' failed



I can fix this.

Thandk at all.

Is This A Good Question/Topic? 0
  • +

Replies To: Conflict errors in include dxgi1_2.h

#2 frostraver  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 93
  • Joined: 11-September 12

Re: Conflict errors in include dxgi1_2.h

Posted 26 December 2013 - 06:09 PM

Check if you didn't include the same file mutiple times. Check for circular dependencies. That's all I can think of.
Let us know if it worked or not if you can.
Was This Post Helpful? 0
  • +
  • -

#3 Gabarel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 19-August 13

Re: Conflict errors in include dxgi1_2.h

Posted 27 December 2013 - 01:31 AM

Thanks frostraver, I scanned the header file dxgi1_2.h and with big surprise I found out that the line where was defined the macro "_In_reads_" were commented, problably someone before me has changed it for some reason but I cannot figure it out why. I didn't see it before because I was checking the line that the compiler indicated in the log.

That's all, bye.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1