Code::Blocks Forums
User forums => Help => Topic started by: krwtsik on April 03, 2017, 12:29:18 am
-
Hello everybody,
I'm pretty new to programming and I was trying to absolve an online C++ workshop with the help of Code::Blocks.
First of all we should write, compile and run a "HelloWorld!"project, which did work.
Second was another project that asks you to "Enter a number" and then displays: "You entered the number x".
Now codeblocks seems to think that I want all projects to look the same and when I run the second program it says "HelloWorld."
The host of this workshop said we should try and make the second project a "HelloMoon", which did work, but after that every project I write behaves like a "HelloMoon". Even if I'm in the tree of "EnterX", as soon as I save, Codeblocks tells me that it just saved "HelloMoon". I tried to clean the workspace and Codeblocks tells me "workspace HelloMoon cleaned", when I'm still in project "EnterX".
It is really quite annoying!
It would be so great if somebody could help me get rid of this function somehow.
Greetz
-
Do you know the difference between an CB Project and the CB Workspace?
Your post implies you do NOT know the difference.
Tim S.
-
No. I don't even know what a workspace does. I was told that I could use Code::Blocks for this C++ Tutorial.
It just seems that there is a project dependency by default where I don't even need it. If I go into project dependencies under project\properties as proposed in Help I can not change the dependency I can only look at it and see that it's there...
-
Post a full rebuild log and maybe someone will have an idea of what you are doing wrong.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Edit: Posting a link to the "C++ Tutorial" you are using might also help us help you.
Tim S.
-
And !always! make one project per main function: