It is terrible to build GMP for me!

hi serverback at 126.com
Tue Nov 21 22:43:18 CET 2006


It is all on windows XP sp2 system, P4-2.4G, 1G Ram.

 I install the cygwin latest version. and run cmd: 
./configure -build=i386-pc-cygwin, it fininshed normally.
then run cmd:
make
1st time it reports resource is not enough, 2nd time during make process the computer suddenly reboot with no notification. 
3rd also reboot.
4th time I close all the prog, and run make, it successfully ended and produce the 
.libs\libgmp.a, .libs\libgmp.la. Then I open adobereader to read docs and run: make check, during process it suddenly reboot again!

 I also once tried cmd: ./configure -build=i386-pc-cygwin --disable-static --enable-shared
to make a dll, but during process it just reboot.
It seems that the computer just reboot at any time it likes : < !

 Finally I run ./configure -build=i386-pc-cygwin --disable-static --enable-shared, successfully. Then I run make, but make output
lines as below:
make  all-recursive
make[1]: Entering directory `/wksrc/gmp'
Making all in tests
make[2]: Entering directory `/wksrc/gmp/tests'
Making all in .
make[3]: Entering directory `/wksrc/gmp/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wksrc/gmp/tests'
Making all in devel
make[3]: Entering directory `/wksrc/gmp/tests/devel'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/devel'
Making all in mpn
make[3]: Entering directory `/wksrc/gmp/tests/mpn'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/mpn'
Making all in mpz
make[3]: Entering directory `/wksrc/gmp/tests/mpz'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/mpz'
Making all in mpq
make[3]: Entering directory `/wksrc/gmp/tests/mpq'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/mpq'
Making all in mpf
make[3]: Entering directory `/wksrc/gmp/tests/mpf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/mpf'
Making all in rand
make[3]: Entering directory `/wksrc/gmp/tests/rand'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/rand'
Making all in misc
make[3]: Entering directory `/wksrc/gmp/tests/misc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/misc'
Making all in cxx
make[3]: Entering directory `/wksrc/gmp/tests/cxx'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/cxx'
Making all in mpbsd
make[3]: Entering directory `/wksrc/gmp/tests/mpbsd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wksrc/gmp/tests/mpbsd'
make[2]: Leaving directory `/wksrc/gmp/tests'
Making all in mpn
make[2]: Entering directory `/wksrc/gmp/mpn'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/wksrc/gmp/mpn'
Making all in mpz
make[2]: Entering directory `/wksrc/gmp/mpz'
  All is "Nothing to be done for ", so I donnot get an resulting Dll. errrrr....

When i try to link against the static lib libgmp.a with vc6, in the main prog I include "gmp.h". 
I compile the prog, then get error msg:
vc\gmp\gmp-4.2.1\gmp.h(515) : error C2039: 'FILE' : is not a member of 'std'
the error line in gmp.h is:
#if defined (__cplusplus)
extern "C" {
using std::FILE; //here is the error line
#endif
 i have tried to inlucde <stdio.h> before gmp.h but the same error occers.
 why i get the compiling error msg? because vc6 cannot compile the resulting gmp.h? what compiler should I use?

 Why is the Building of GMP so terrible and hard to me? is there sth wrong? i am so unlucky!!! : <<










-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20061122/43ccaf7a/attachment.html 


More information about the gmp-discuss mailing list