How do I compile programs to create object files?

Feb 19, 2013 at 1:05pm
My question now is how do I create object files out of compiled cpp files? The book doesn't specify, and they don't get created when I run them. Do I just save the .cpp as an .obj file?
Last edited on Feb 19, 2013 at 1:18pm
Feb 19, 2013 at 1:20pm
You can't run a source file. You will have to first compile the two source files (Rectangle.cpp and RectangleApp.cpp) and link them into an executable file that you can run. If you have added these files to the same project all you probably have to do is to press Build and then run (Not sure about the details because I don't use Code::Blocks).
Feb 19, 2013 at 1:23pm
Thank you it works now
Topic archived. No new replies allowed.