# Upload module (2.2.0) compile errors on windows

**URL:** <https://www.ruby-forum.com/t/upload-module-2-2-0-compile-errors-on-windows/224941>\
**Category:** NGINX\
**Created:** [December 4, 2012, 5:39am UTC](https://www.ruby-forum.com/t/upload-module-2-2-0-compile-errors-on-windows/224941 "2012-12-04T05:39:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 4, 2012, 5:39am UTC](https://www.ruby-forum.com/t/upload-module-2-2-0-compile-errors-on-windows/224941/1 "2012-12-04T05:39:01Z")

</div>

## I am trying to compile nginx on windows following the instructions at [Building nginx on the Win32 platform with Visual C](http://nginx.org/en/docs/howto_build_on_win32.html). I am using the nginx sources from release-1.2.5 and including nginx\_upload\_module-2.2.0. I am getting the following errors:

## ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1200) : warning C4047: ‘=’ : ‘ngx\_fd\_t’ differs in levels of indirection from ‘int’ ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1321) : warning C4047: ‘=’ : ‘ngx\_fd\_t’ differs in levels of indirection from ‘int’ ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1363) : warning C4244: ‘=’ : conversion from ‘off\_t’ to ‘size\_t’, possible loss of data ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1455) : warning C4204: nonstandard extension used : non-constant aggregate initializer ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1456) : warning C4204: nonstandard extension used : non-constant aggregate initializer ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1696) : warning C4013: ‘ngx\_lock\_fd’ undefined; assuming extern returning int ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1729) : error C2039: ‘st\_size’ : is not a member of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1730) : error C2039: ‘st\_size’ : is not a member of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1731) : error C2039: ‘st\_size’ : is not a member of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of ‘\_BY\_HANDLE\_FILE\_INFORMATION’ ./nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c(1731) : fatal error C1903: unable to recover from previous error(s); stopping compilation NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE”’ : return code ‘0x2’

I would appreciate any help in resolving this.

Posted at Nginx Forum:

> **[upload module (2.2.0) compile errors on windows](https://forum.nginx.org/read.php?2,233537,233537#msg-233537)**
>
> I am trying to compile nginx on windows following the instructions at http://nginx.org/en/docs/howto\_build\_on\_win32.html. I am using the nginx sources from release-1.2.5 and including nginx\_upload\_module-2.2.0. I am getting the following errors: ---...
