View Single Post
Old 2009-03-18, 14:05   #11
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3·1,097 Posts
Default

Quote:
Originally Posted by mklasson View Post
Yeah, appears to be ms-specific. unistd.h -> unlink() and chdir() for linux.
yep. A couple of #ifdef's and that problem is gone. Here's the last hurdle:

Code:
buhrow@barista:~/aliquot$ g++ aliqueit.cc -I /user/buhrow/gmp/gmp-4.2.3/ -l /user/buhrow/gmp/install4.2.3/lib/libgmp.a
aliqueit.cc: In function âvoid factor(mpz_class, std::vector<std::pair<__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, int>, std::allocator<std::pair<__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, int> > >&, std::vector<__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, std::allocator<__gmp_expr<__mpz_struct [1], __mpz_struct [1]> > >&, bool)â:
aliqueit.cc:433: error: invalid initialization of non-const reference of type âmpz_class&â from a temporary of type âmpz_classâ
aliqueit.cc:398: error: in passing argument 1 of âvoid found_factor(mpz_class&, std::vector<std::pair<__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, int>, std::allocator<std::pair<__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, int> > >&)â
bsquared is offline   Reply With Quote