Results 1 to 4 of 4

Thread: GMP library not found

  1. #1
    Join Date
    Aug 2009
    Posts
    40

    GMP library not found

    My problem is that I install the GMP library. In my case include code block I have gmp.h and gmpxx.h, Then I did Project > Build option > Linker settings and I have my 2 linker files. However, when compiling it blocks the # include <gmpxx.h> And It shows no such file or directory.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: GMP library not found

    Have you properly installed the includes of gmp in the include directory of MinGW code:: blocks? You did not installed in a subdirectory gmp and I called a header gmp.h, gmpxx.h is unknown ...

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: GMP library not found

    All the C++ classes and functions are available with #include <gmpxx.h> Programs should be linked with the `libgmpxx' and `libgmp' libraries. For example, g++ mycxxprog.cc -lgmpxx -lgmp
    Code:
    int
    main (void)
    {
      mpz_class e,g,f;
    
      e = 134;
      g = "-578";
      f = e+g;
      cout << "sum is " << f << "\n";
      cout << "absolute value is " << abs(f) << "\n";
    
      return 0;
    }

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: GMP library not found

    GMP is just a high-precision number library, which is necessary for dealing with the large numbers encountered in encryption. The use of the GMP-provided type mpz_t and GMP-provided functions like mpz_init, mpz_init_set_str, and mpz_add.

Similar Threads

  1. Replies: 3
    Last Post: 14-01-2014, 09:38 AM
  2. Replies: 3
    Last Post: 26-03-2012, 03:25 PM
  3. Replies: 3
    Last Post: 08-02-2011, 07:08 AM
  4. Replies: 3
    Last Post: 05-02-2011, 03:51 PM
  5. Replies: 4
    Last Post: 28-12-2010, 08:38 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,713,843.31949 seconds with 16 queries