From: Farkas L. <lf...@lf...> - 2011-06-22 15:27:05
|
On 06/22/2011 03:44 PM, Kai Tietz wrote: > 2011/6/22 Farkas Levente <lf...@lf...>: >> On 06/22/2011 03:33 PM, Ozkan Sezer wrote: >>> On Wed, Jun 22, 2011 at 4:22 PM, Farkas Levente <lf...@lf...> wrote: >>>> On 06/22/2011 03:07 AM, JonY wrote: >>>>> On 6/21/2011 23:49, Farkas Levente wrote: >>>>>> On 06/21/2011 05:48 PM, Farkas Levente wrote: >>>>>>> hi, >>>>>>> it seems that the svn 4219 checkin add a few missing header files (eg >>>>>>> d3dx9xof.h) which requires for d3d, but it seems they are still not >>>>>>> perfect. currently if i try to use it a project i've got this error: >>>>>>> -------------------------------------- >>>>>>> In file included from >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9.h:33:0, >>>>>>> from >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9tex.h:20, >>>>>>> from ../../../sys/d3dvideosink/d3dvideosink.h:31, >>>>>>> from ../../../sys/d3dvideosink/d3dvideosink.c:25: >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9xof.h:73:34: error: >>>>>>> expected ')' before 'IUnknown' >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9xof.h:88:44: error: >>>>>>> expected ')' before 'IUnknown' >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9xof.h:102:42: error: >>>>>>> expected ')' before 'IUnknown' >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9xof.h:120:44: error: >>>>>>> expected ')' before 'IUnknown' >>>>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/d3dx9xof.h:136:38: error: >>>>>>> expected ')' before 'IUnknown' >>>>>>> -------------------------------------- >>>>>>> >>>>>>> while the 1.0 branch has no d3d9.h header:-) >>>>>> >>>>>> but the cygwin branch has a coherent d3d header set! >>>>>> they are build from different branch? >>>>>> >>>>> >>>>> Cygwin branch? >>>>> >>>>> Can you post a minimalist test case that causes this problem? >>>> >>>> i hope it's minimal enough:-) >>>> ------------------------------------- >>>> #include <windows.h> >>>> #include <d3d9.h> >>>> #include <d3dx9tex.h> >>>> >>>> int main () >>>> { >>>> Direct3DCreate9(D3D_SDK_VERSION); >>>> >>>> return 0; >>>> } >>>> ------------------------------------- >>>> >>> >>> >>> Your testcase compiles fine against release v1.0 branch for both x86 >>> and x64 as well (I used my own sezero_20110510 toolchain) >>> >>> $ /opt/cross_win32/bin/i686-w64-mingw32-gcc test.c -o test.exe -ld3d9 >>> $ ls -l test.exe >>> -rwxrwxr-x 1 ozzie ozzie 97768 2011-06-22 16:32 test.exe >>> $ >>> >>> Not sure about the state of the trunk, though. >> >> i try with the trunk:-( and it gives the same error. >> >> -- >> Levente "Si vis pacem para bellum!" > > Well, there seems to be a forward declaration of IUnknown missing. So > I assume that the include unknwn.h is missing. The other way to solve > this would be to use in d3dx9xof.h instead of type "IUnknown" the > forward declaration "struct IUnknown;' and prefix the use of IUnknown > by 'struct' keyword. > IMHO the first is the better fix. ok but we agree that this should have to fix in mingw64 and not in the example code!? since the above code should have to compile... -- Levente "Si vis pacem para bellum!" |