View Single Post
Old Oct 22nd, 2006, 6:53 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,099
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
I can't seem to get it working... I've tried the following...

Download : GMP, MinGW and Msys.

1 ) Put "c:/Dev-CPP" in the PATH variable.
2 ) Install MinGW
3 ) Install Msys
4 ) Unzip GMP
5 ) Run Msys
6 )
cd "location of GMP"
./configure --prefix="c:/dev-cpp"
make
make install

Then when I execute the code...
#include <gmp.h>

int main() {
        mpz_t integ;
        mpz_init (integ);
}
I get...
  [Linker error] undefined reference to `__gmpz_init' 
Help?

Last edited by Sane; Oct 22nd, 2006 at 7:08 PM.
Sane is online now   Reply With Quote