User forums > Using Code::Blocks

Conceptual help with "workspace"

<< < (2/2)

grreg:
"Those choices you see are project templates/wizards.  They help you get started by adjusting the starting settings of the projects they generate.  This makes it easier include the proper libraries, have proper output file type, etc.  So in short, they just configure the project, they aren't targets."

I see.

Aha!

"The "Save Project As..." and "Save Workspace As..." options don't create copy the entire contents of the project, they only copy the project file it self, or the workspace file itself."

This is the missing piece of the puzzle and explains the behaviour that was confusing me. Now I think I see what's going on. With that in mind, your explanation of how you would lay out your work makes perfect sense.

"You seem a little new to development,"

That would be an understatement!

"...what you are trying to do is better accomplished with a Source Control System."

I think I gave that impression, but I'm not trying to save multiple versions. I was just trying to shortcut by doing what I might do if I were word-processing, namely, use save as to create a copy of what I'm doing under a new name and then erase the text and start the new thing I want to write. But thank you for the links to SVN and the how-to, I can see right away how necessary and helpful source control tools would be. I will read through those today.

Thanks for your time and help!
-Greg


mejohnsn:

--- Quote from: grreg on May 10, 2006, 04:55:57 am ---
since I'm starting with the simple "hello world" thing I chose console application. Now I have a project called "console application" (actually I have a few projects called that because I can't figure out how to give them different names) which contains my "hello world" source file which is called main.

--- End quote ---

Two suggestions:

1 - When you create a project using the File:New Project or Project:New Project wizards, make a separate directory for each project. That way, when it creates 'main.cpp', it will not clobber some other 'main.cpp' (among other benefits)

2 - Since 'console application' is such an un-unique name, you should rename the project (as the title appears in C::B's Projects tab) by selecting the project, right-clicking on it, and go to Properties:Project:Title and enter your own descriptive name for the project. You might, for example, make it match the directory name of 1).

Of course Game_Ender's suggestions are also good, but since you are a beginner, you might want to get your feet wet with my two suggestions above before you tackle his rather more involved approach.

Navigation

[0] Message Index

[*] Previous page

Go to full version