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.
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.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
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.
"The Internet treats censorship as damage and routes around it." - John Gilmore
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)