a compile bug when i use mpz_init_set_str or mpz_init_get_str

Torbjorn Granlund tg at gmplib.org
Sat Sep 11 11:48:12 CEST 2010


"Cupid" <365636633 at qq.com> writes:

  my english is very poor ,i hope you know what i said
     when i use mpz_init_get_str in my application,
   i build the solution then i got some error message,list below:
    
   gmp.lib(mul_n.o) : error LNK2019: unresolved external symbol ___chkstk referenced in function ___gmpn_mul_n
  1>gmp.lib(toom42_mul.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(toom53_mul.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(mul_fft.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(lt43-set_str.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(sqr.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(lt82-mul.o) : error LNK2001: unresolved external symbol ___chkstk
  1>gmp.lib(nussbaumer_mul.o) : error LNK2001: unresolved external symbol ___chkstk
  1>F:\vc10\elgamal\Debug\elgamal.exe : fatal error LNK1120: 1 unresolved externals
    
   gmp 5.0.1  use static lib
   develop env vs2008 , vs2010
   windows server 2008
   the same situation int console app or mfc

GMP does not call any function named "chkstk".

-- 
Torbjörn


More information about the gmp-bugs mailing list