Write code in plain text files using the editor of your choice.
Compile as follows: g++ one.cpp two.cpp three.cpp
where one.cpp, two.cpp, three.cpp are the cpp files you wish to compile. Be sure that one of them has a main function if you want an output executable. It will be named a.out unless you change that with a compile option.
If you need to link to a library, do as follows:
g++ one.cpp two.cpp three.cpp -lLIBRARYNAME
That's not a -i there in front of LIBRARYNAME, it's a lower-case L.
It's that simple. From there, you can make it more and more sophisticated and start using makefiles to automate things for you.
Edit: Also, my header file contains classes. Where the class initilization is the only thing in it... in a seperate file it has the function definitions and includes that header file. This doesn't work... But all the code I copied it from is in once consolidated file that compiles correctly... Is that using it correctly?
lol... it worked... i just forgot to include the libraries with the damn compilation... I hate silly mindless err like that. Pretty cool... Now i can continue this project.
Header files are not libraries. Header files are copied exactly into the files in which they are #included, by the preprocessor. A library is a binary file, already compiled, containing functions.