[osgeo4w-dev] osgeo4w rev1262 dose not compile

Minoru Akagi akaginch at gmail.com
Thu Sep 5 07:16:55 PDT 2013


Hi,

hayashi at apptec.co.jp wrote
> But other error occur as blow,
> 
> --------------------------------------
> In file included from ntdll.h:25:0,
>                   from filemanip.cc:32:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h:49:15: error: 
> conflicting declaration ‘typedef void* PEXECUTION_STATE’
> In file included from
> /usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:62:0,
>                   from win32.h:52,
>                   from filemanip.cc:30:
> /usr/i686-pc-mingw32/sys-root/mingw/include/winbase.h:1973:33: error: 
> ‘PEXECUTION_STATE’ has a previous declaration as ‘typedef DWORD*
> PEXECUTION_STATE’
> Makefile:912: recipe for target `filemanip.o' failed
> make[2]: *** [filemanip.o] Error 1
> make[2]: Leaving directory `/home/newosgeo4w/setup'
> Makefile:957: recipe for target `all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/newosgeo4w/setup'
> Makefile:708: recipe for target `all' failed
> make: *** [all] Error 2
> -----------------------------
> 
> There are two typedef in include files...
> 
> include\winbase.h(1973): typedef DWORD EXECUTION_STATE, *PEXECUTION_STATE;
> include\ddk\ntapi.h(49): typedef PVOID PEXECUTION_STATE;
> 
> Maybe PVIOD is (void *)
> 
> How do you fix this?

I encountered the same error today. I replaced PVOID with PDWORD [1], and
then I could successfully build.

include\ddk\ntapi.h(49):
- typedef PVOID PEXECUTION_STATE;
+ typedef PDWORD PEXECUTION_STATE;

[1] http://permalink.gmane.org/gmane.os.cygwin/141832

Cheers,
Minoru




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/osgeo4w-rev1262-dose-not-compile-tp5076177p5076246.html
Sent from the osgeo4w-dev -- OSGeo Win32 Installer List mailing list archive at Nabble.com.


More information about the osgeo4w-dev mailing list