Ubuntu g++ compiler - Beginner commands
So after much reading I was coaxed into trying a Unix system and getting out of the windows environment I was coding in.
It seriously took me all afternoon just to figure out how to compile a program that had a personally written .h file. Now that I have finally figured out how to compile it with the propper commands. I was just wondering if anyone had any suggestions or advice for coding in this new environment.
This isn't really a question just a place that anyone who has used this environment can drop tips or experience they've learned over the years.
What I know so far
Code:
g++ sort.cpp -c -I/home/user/directorytoinclude -Wall -W -Werror // will compile to a .o
g++ sort.o main.cpp -I/home/user/directorytoinclude -Wall -W -Werror // will compile using the .o
You'll probably laugh but it seriously took me all afternoon to learn the correct syntax in this. I didn't see alot of information out there directed at noobies coding in the environment.
Thanks!