User forums > Help

Install GMP library with codeblocks

(1/3) > >>

rohan076:
Hi,
   I was developing a cryptographic application and I'll have to use the GMP library for it. now i use codeblocks for coding in C! how do i make use of the gmp library?? please help.

Thanks in advance,
Rohan. :shock:

Max:
It is not difficult. You can use the MSYS (see www.mingw.org) system. You can simply follow the usual
build procedure of the Unix world (./configure then make).
Read the installation instruction before running the configure command to understand which options are good for you.
I do suggest to run the tests after compilation, it is mandatory to verify the compilation. If you get errors you cannot
trust in the library. If you don't get errors... it is possible that gmp works.

If you have problems I can send you (without any responsability) my libs and includes.

Regards

Max.

rohan076:
i dont quiet understand!!! i'm new to all of this, in the gmp folder, there is a gmp.h file, i've included that in the header of my program, is there anything else i gotta set, cause i get errors while compiling the code. can you be more precise with your method. thanks in advace.  8)

thomas:
When learning to program, learning how to use Google is the most important thing.

If you google for GMP library, the second hit you get is "GMP install instructions". That page not only describes exactly what you need to do to compile GMP with a variety of compilers, it also contains downloadable precompiled libraries which you can use right away.

rohan076:
hmm.......to tell u the truth i tried all of that, but nothing f*&(* works!!! its so frustrating!

Navigation

[0] Message Index

[#] Next page

Go to full version