I can't find the prototype in the documentation for mpz_class first(123);
are you sure you are using it correctly? I think what you want is: mpz_class first(mpz_t); though I have never used the interface before, so I couldn't be sure. Bill. 2009/6/10 Peter_APIIT <peterap...@gmail.com>: > > I get unresolved external symbol when i try to multiply or divide. > > #include <iostream> > > #include <mpir.h> > #include <mpirxx.h> > > using namespace std; > > // ============================================ > > > > // ============================================ > > > > // ============================================ > int main() > { > mpz_class first(123), second(123), result(0); > > result = first + second; > result = first - second; > result = first * second; > result = first / second; > > // cout << result.get_d(); > > > return 0; > } > > I include both C and C++ header and link with C and C++ .a file also. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---