i downloaded a math library from www.swox.com/gmp and i am not quite sure how to install it so i can use it in my applications. could someone tell me please? the compiler i am using is bloodshed dev-c++ (version 4.9.9.2). thank you.
Printable View
i downloaded a math library from www.swox.com/gmp and i am not quite sure how to install it so i can use it in my applications. could someone tell me please? the compiler i am using is bloodshed dev-c++ (version 4.9.9.2). thank you.
well, its not so much an install process. Do you have the .lib file? that is all you need.
You drop it into your project folder.. or if you want it in multiple projects you could set dev c++ to use that file as a standard library or something.
But simplest way is to drop it in your project folder, then include it in your project, and in a header file of ur main file put this code
Thats all, then you can use the functions of the library in any page includeing the header file the pragma is in.Code:#pragma comment ( lib, "libraryname.lib" )
Have you read the manual? It is explained there how to install and use it.
I don't think it works in Dev-C++.Code:#pragma comment ( lib, "libraryname.lib" )
In project options, put "-llibraryname" to the linker parameters box.