title: Build GMP on Windows 32-Bit
body: <p>Hello I am trying to compile gmp because I need it for a Perl Module. I have to install eveyrthing manually because the machine doesent have access to the Internet. I runned configure and used this command in cygwin in the GMP Folder:</p>
  
  <pre><code>./configure --prefix=C:\gmp --disable-static --enable-shared
  </code></pre>
  
  <p>Now that also worked without problems and created the MAKEFILE now when I run make this happens:</p>
  
  <pre><code>$ make
  gcc -std=gnu99 `test -f 'gen-fac.c' || echo './'`gen-fac.c -o gen-fac.exe
  ./gen-fac 32 0 &gt;fac_table.h || (rm -f fac_table.h; exit 1)
  gcc -std=gnu99 `test -f 'gen-fib.c' || echo './'`gen-fib.c -o gen-fib.exe
  ./gen-fib header 32 0 &gt;fib_table.h || (rm -f fib_table.h; exit 1)
  ./gen-fib table 32 0 &gt;mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1)
  gcc -std=gnu99 `test -f 'gen-bases.c' || echo './'`gen-bases.c -o gen-bases.exe -lm
  ./gen-bases header 32 0 &gt;mp_bases.h || (rm -f mp_bases.h; exit 1)
  ./gen-bases table 32 0 &gt;mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
  gcc -std=gnu99 `test -f 'gen-trialdivtab.c' || echo './'`gen-trialdivtab.c -o gen-trialdivtab.exe -lm
  ./gen-trialdivtab 32 8000 &gt;trialdivtab.h || (rm -f trialdivtab.h; exit 1)
  gcc -std=gnu99 `test -f 'gen-jacobitab.c' || echo './'`gen-jacobitab.c -o gen-jacobitab.exe
  ./gen-jacobitab &gt;mpn/jacobitab.h || (rm -f mpn/jacobitab.h; exit 1)
  gcc -std=gnu99 `test -f 'gen-psqr.c' || echo './'`gen-psqr.c -o gen-psqr.exe -lm
  ./gen-psqr 32 0 &gt;mpn/perfsqr.h || (rm -f mpn/perfsqr.h; exit 1)
  make  all-recursive
  make[1]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp'
  Making all in tests
  make[2]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests'
  Making all in .
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests'
  make[3]: Für das Ziel »all-am« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests'
  Making all in devel
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/devel'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/devel'
  Making all in mpn
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpn'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpn'
  Making all in mpz
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpz'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpz'
  Making all in mpq
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpq'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpq'
  Making all in mpf
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpf'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/mpf'
  Making all in rand
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/rand'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/rand'
  Making all in misc
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/misc'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/misc'
  Making all in cxx
  make[3]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/cxx'
  make[3]: Für das Ziel »all« ist nichts zu tun.
  make[3]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests/cxx'
  make[2]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/tests'
  Making all in mpn
  make[2]: Entering directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/mpn'
  /bin/sh ../libtool --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo fib_table | sed 's/_$//'`     -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 -c -o fib_table.lo fib_table.c
  libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_fib_table -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 -c fib_table.c  -DDLL_EXPORT -DPIC -o .libs/fib_table.o
  In file included from ../gmp-impl.h:134:0,
                   from fib_table.c:4:
  ../gmp-mparam.h:1:1: error: expected identifier or '(' before '!' token
  ../gmp-mparam.h:1:1: error: stray '\377' in program
  ../gmp-mparam.h:1:1: error: stray '\376' in program
  ../gmp-mparam.h:1:14: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:16: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:18: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:20: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:22: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:24: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:26: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:28: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:30: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:32: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:34: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:36: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:38: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:40: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:42: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:44: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:46: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:48: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:50: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:52: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:54: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:56: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:58: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:60: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:62: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:64: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:66: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:68: warning: null character(s) ignored [enabled by default]
  ../gmp-mparam.h:1:70: warning: null character(s) ignored [enabled by default]
  In file included from ../gmp-impl.h:144:0,
                   from fib_table.c:4:
  e:\fagprogramme\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include/inttypes.h:272:1: error: unknown type name 'wchar_t'
  e:\fagprogramme\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include/inttypes.h:273:29: error: unknown type name 'wchar_t'
  e:\fagprogramme\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include/inttypes.h:274:1: error: unknown type name 'wchar_t'
  e:\fagprogramme\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include/inttypes.h:275:9: error: unknown type name 'wchar_t'
  Makefile:389: recipe for target `fib_table.lo' failed
  make[2]: *** [fib_table.lo] Error 1
  make[2]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp/mpn'
  Makefile:833: recipe for target `all-recursive' failed
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/cygdrive/e/FAGProgramme/Perl Modules/gmp'
  Makefile:656: recipe for target `all' failed
  make: *** [all] Error 2
  </code></pre>
  
  <p>Now I dont know what to do. I also tried it without any parameteres it still gives the same error.</p>