News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Project dependencies => frustrating

Started by krwtsik, April 03, 2017, 12:29:18 AM

Previous topic - Next topic

krwtsik

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

stahta01

Do you know the difference between an CB Project and the CB Workspace?

Your post implies you do NOT know the difference.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

krwtsik

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...

stahta01

#3
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

Edit: Posting a link to the "C++ Tutorial" you are using might also help us help you.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

And !always! make one project per main function:
int main(void)
{
}