For some reason it keeps putting me in the same directory tree which I cannot escape out of
Printable View
For some reason it keeps putting me in the same directory tree which I cannot escape out of
What do you mean? You can use cd to change directory (just like on Windows, but with the option of *nix-like paths).Quote:
For some reason it keeps putting me in the same directory tree which I cannot escape out of
Yeah, I found out how now... I was just doing cd .. to get as high as I could go, but it turns out what I really needed was cd "C:\path\to\dir"
Followed all the steps, now can I just #include <gmp.h> or what?
Yes, but read up on GMP Basics.
How do I "include the library" using a single file in Bloodshed?
You would need to transfer include/gmp.h from the MinGW directory to Dev-C++'s directory. Do likewise for lib/libgmp.a
After that it is a matter of setting project options. Probably something like -lgmp under linker options.
I got it working for projects, I wanted to know if I could do it for single files.
No idea, sorry. I would probably use gcc directly if I wanted to work with single files.
Thanks for your help
>I got it working for projects, I wanted to know if I could do it for single files.
Go to: Tools -> Compiler Options, then check: Add these commands to the linker command line, and then add -lgmp as Lasarlight mentioned.