int main() { /* mpz_class first(123), second(123), result(0); result = first + second; result = result - second; result = first * second; result = first / second;
cout << result.get_d(); */ mpz_t a, b, c; mpz_init(a); mpz_init(b); mpz_init(c); mpz_set_str(a, "123", 10); mpz_set_str(b, "1244", 10); mpz_set_str(c, "111231234578", 10); mpz_add(a, a, b); gmp_printf("Result is %Zd", a); mpz_clear(a); mpz_clear(b); mpz_clear(c); return 0; } error LNK2019: unresolved external symbol _isascii referenced in function ___gmp_doprnt libmpir.a error LNK2019: unresolved external symbol _snprintf referenced in function ___gmp_doprnt_mpf2 libmpir.a fatal error LNK1120: 2 unresolved externals D:\C++\MPIR\Exercise\Debug \Exercise.exe Actually, i use mpir library as big Num library and to generate prime number for RSA. What is your opinion ? This is too difficult to use. Please help. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en -~----------~----~----~----~------~----~------~--~---