User forums > Using Code::Blocks

Code::Blocks/compiler? bungling up on first program: Hello, World!

<< < (2/2)

killerbot:
ok, empty project will require you to manually adjust several thing later on (exe target, or dll, or static lib or ??).

Maybe it is better you start a new project of the type you want.

You want :
 - a console app
 - a dll
 - a static lib
 - a wxwidget executable

?

theAdmiral:
I believe I want a console app.  However, I don't know because I don't know what a wxwidget executable is.  Is that for windows xp?  What is that?  I am just trying to create all example programs and exercises that I can find in Sam's Teach Yourself C++ in 21 Days.  Are you familiar with it?

Thanks,
John

theAdmiral:
Based on what I see with Code::Blocks capabilities, which I am not saying is much, I cannot develop a hierarchical structure in the navigation pane such that the 21 Days project is broken down into three weeks, and each week is broken down into seven days, and each day contains the practice programs and assignments for that particular day.  Would you agree with this or disagree, Moderator?  If you agree, you are saying that all of my programs will have to go in the Sources folder in the nav pane, and other associated files will have to go in folders designed in Code::Blocks to be specifically for those types of files.  Correct?  Where is some good reading on this so that I can educate myself and not bog you down?  Thanks, theAdmiral.

killerbot:
You most probably will want to use console applications.

From the book you are using, there will be several example programs. You can watch every example program as a project (that's what I would suggest).

So you create a new console project per example program. Now it is up to you where you want to save those projects on your hard disk.

So you can create 21 days directory, with subdirectories as you like.

Note : you could put all example programs as targets of one big project, but I wouldn't do that.So forget I said so ;-)

You can group projects into a workspace.

But just start out with a first example program, and put it somewhere in your directory tree.

So start with file->new->Project : console project and follow the wizard. At the end put in the generated main.cpp your own code.

theAdmiral:
Killerbot,

May I ask some more of your time, please?  I just need to get a few things squared away about your previous response.  I am not sure that you have the book that I have, to look at and see what I am talking about.  For example, throughout each chapter, you are right, there are example programs.  However, your answer did not mention anything about the exercises at the back of each chapter.  Just need to clear up some confusion.    I guess, what I would like to know if there is anyway to organize the console projects under project.  I would also like to know how to make a subdirectory.  That term is not anywhere in the menus that I am working with right now in Code Blocks.  Let me repeat all of this back to you just so I can let you know how I understand it--that for every program, no matter how small, that I create, in order to do that I will have to create a project.  No?  If not, then how can I organize it, please?

Thanks,

theAdmiral

Navigation

[0] Message Index

[*] Previous page

Go to full version