ICC compilation failure of wine 1.2-rc* dxgi w/ patch

Len White lwhite at nrw.ca
Sat Jun 26 12:44:10 CDT 2010


Hi,

I have been running into this with ICC, after looking at the way
GetProcAddress() is called everywhere else, I think it's right but I
thought I would post it here, it would be nice to see the final of wine
1.2 compile w/ icc out of the box.

icc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ 
-D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits
-Wwrite-strings -Wpointer-arith -xHOST -w -gcc -gcc-version=430
-override-limits  -xHOST -w -gcc -gcc-version=430 -override-limits   -o
output.o output.c
dxgi_main.c(149): error: function returning function is not allowed
          d3d10core_register_layers = (HRESULT (WINAPI
*)(void))GetProcAddress(mod, "D3D10CoreRegisterLayers");
                                                          ^

dxgi_main.c(149): error: cast to type "<error-type> (int *)" is not allowed
          d3d10core_register_layers = (HRESULT (WINAPI
*)(void))GetProcAddress(mod, "D3D10CoreRegisterLayers");
                                       ^

Compilation aborted for dxgi_main.c (code 2)
make[1]: *** [dxgi_main.o] Error 2

*** dxgi_main.c.orig    Wed Jun 16 23:49:20 2010
--- dxgi_main.c    Wed Jun 16 23:49:45 2010
***************
*** 146,152 ****
              return E_FAIL;
          }
 
!         d3d10core_register_layers = (HRESULT (WINAPI
*)(void))GetProcAddress(mod, "D3D10CoreRegisterLayers");
          hr = d3d10core_register_layers();
          if (FAILED(hr))
          {
--- 146,152 ----
              return E_FAIL;
          }
 
!         d3d10core_register_layers = (void *)GetProcAddress(mod,
"D3D10CoreRegisterLayers");
          hr = d3d10core_register_layers();
          if (FAILED(hr))
          {




More information about the wine-patches mailing list