Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 15-10-2009
Member
 
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.
Reply With Quote
  #2  
Old 15-10-2009
Member
 
Join Date: May 2008
Posts: 2,293
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 ...
Reply With Quote
  #3  
Old 15-10-2009
Member
 
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;
}
Reply With Quote
  #4  
Old 15-10-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "GMP library not found"
Thread Thread Starter Forum Replies Last Post
Getting ?HTTPClient Library not found? message while doing micro-program setup for AMS2500 from web celestiall Hardware Peripherals 3 14-01-2014 09:38 AM
Move iTunes library to WD My Book Live Duo without losing library settings FLU|TER Hardware Peripherals 3 26-03-2012 03:25 PM
No updates in iTunes library even when music found in recently added. Jaganmohini Windows Software 3 08-02-2011 07:08 AM
Installing IE 8 get error:"Ordinal 423 could not be found in dynamic link library urlmon.dll" Rusheek Technology & Internet 3 05-02-2011 03:51 PM
Library Does not Show Album Art in Windows 7 Music Library files Numb Windows Software 4 28-12-2010 08:38 AM


All times are GMT +5.5. The time now is 03:56 PM.