News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code::Blocks 16.01 suddenly won't compile or build

Started by fopetesl, February 13, 2017, 10:48:07 AM

Previous topic - Next topic

fopetesl

Windows 7 Ultimate 64 bit.
Have been compiling successfully with current set up for over a month.
GCC using C (not C++)
Rechecked settings>compiler>toolchain
Option to show message windows ticked

Only response is Ctrl+F11 (or Build>Rebuild) with warning window but still does not compile.
All other commands to (re)build or compile elicit no obvious response.
No message window.

UPDATE. Problem disappeared and now compiles.
I undid a couple of commented out lines
//         fHaM = 1,fHaC = 0;
//         fHaMs = 0,fHaCs = 0;
to
         fHaM = 1,fHaC = 0;
         fHaMs = 0,fHaCs = 0;
cured the problem but it makes no logical sense  ???


BlueHazzard

always look at the output of the Build log. There is mostly written what went wrong. Also if you have a compiling problem always post the output from this window here...

fopetesl

OK, first where IS build log?
I've been through all the menu options and looked in help.

Second, I 'm now on a 32 bit Windows 7 Ultimate computer.
Same issue.
Only response is the Rebuild option.

No compiler output to show. Sorry.

BlueHazzard

open the log windows by pressing F2 or View->Logs

enable the build log tab by pressing right click on one log tab->Toggle->Build Log

this should be enabled by default?

fopetesl

Thanks, I eventually found it. :)
Must be a senior thing missing it.
Build logs aren't enabled by default in Settings->Compiler but that seems only to refer to html output.

What has happened is that the "Logs & others" window has disappeared from main screen.
I can drag the log file window from F2 and drop it to the bottom of the screen but it won't resize to its original position.


BlueHazzard

so is the problem only that the log window disappear and the build is successful?
This is a setting: Settings->Environment->View->Auto hide/show message pane
If you have no errors/warnings (for example after you don't have ganged something then a build would be redundant and codeblocks knows this) then the message pane is hidden...

If your problem is still there what does the log window says?

fopetesl

Correct. Sole problem is missing log window.

F2 displays a full width window at bottom of screen similarly when Settings->Environment->View->Auto hide/show message pane
is/are set.

I can live with it but it would have been better in its original position.

It states either a few unitialised variables or nothing to do.

Many thanks for your help.