Code::Blocks Forums

User forums => Help => Topic started by: sjks on November 24, 2013, 05:36:25 pm

Title: always same output!
Post by: sjks on November 24, 2013, 05:36:25 pm
Hello , I have this problem.

When I run (and build) a program it does not build it anymore.It shows me always the output from a previous code!

The truth is that I changed some things from the settings ,compilre but I don't remember what.
If I compile code through command line (g++ -o mycode main.cpp) it is compiled fine.

I removed and reinstalled codeblocks but still the same.

Any suggestions?

Thanks!
Title: Re: always same output!
Post by: oBFusCATed on November 24, 2013, 05:45:04 pm
Any suggestions?
1. Check the modification dates for your source, object and output files. If they are in the future then you'll get this error.
2. Do a full rebuild if you use a project. If it still doesn't work delete all object/lib/output files manually and try again.
Title: Re: always same output!
Post by: sjks on November 24, 2013, 05:58:10 pm
I did "clean" project and now when I run it says always "Do you want to build the project?" ,but it doesn't build it.

Also , I am not sure how I do the things you said..You said 'delete object/lib/files' .Where  I go to delete them?You don't mean the directory of the project,right?Because it doesn't have any /lib folder and it doesn't make sense to delete that in every project ,right?

Thanks!
Title: Re: always same output!
Post by: oBFusCATed on November 24, 2013, 07:13:01 pm
Please read this:  http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Then try to understand what it says and try to fix your problem.
If you're not able post the full build log after a rebuild.

Title: Re: always same output!
Post by: sjks on November 25, 2013, 04:46:04 pm
I removed
Quote
-Werror=no-return
from 'other options' in compiler settings and now works fine!

Thank you!