I'm trying to use this library: C++ Big Integer Library - Matt McCutchen's Web Site
But, I have nooo idea how to start using it.
I'm trying to use this library: C++ Big Integer Library - Matt McCutchen's Web Site
But, I have nooo idea how to start using it.
I'm trying to use this library: C++ Big Integer Library - Matt McCutchen's Web Site
But, I have nooo idea how to start using it. I mean, how would I include the library?
You don't include a library, ever, at any point. After your program is compiled, you need to link the library with your code. How you do that depends on your system.
Ubuntu (9.04) so Linux basically.
G++ ( I zink latest version)
Then presumably you've got lib<whatever>.a somewhere. If you're on the command line, then just add -l<whatever> to the end of your command line, or the end of the final compilation command in your Makefile.
So I had to break down and look at the library you refer to. Apparently there's not so much a library as a bunch of object files. Whichever object files you need, you can incorporate into your program, then. (You don't need -l; just put the .o files in with your .o files when you create the program.)
Can you please tell me the exact command for gcc?
I could, but I don't know how much good it will do any of us, since I'd be quoting you -- the exact command is "gcc". In other words, instead of typing
you'd typeCode:gcc myfile1 myfile2 myfile3 -o exectuable
which does not require any additional anything on anybody's part.Code:gcc myfile1 myfile2 myfile3 hisfile1 hisfile2 -o executable