Author Topic: Code::Blocks 16.01 suddenly won't compile or build  (Read 3488 times)

Offline fopetesl

  • Single posting newcomer
  • *
  • Posts: 8
Code::Blocks 16.01 suddenly won't compile or build
« on: February 13, 2017, 10:48:07 am »
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
Code
//         fHaM = 1,fHaC = 0;
//         fHaMs = 0,fHaCs = 0;
to
Code
         fHaM = 1,fHaC = 0;
         fHaMs = 0,fHaCs = 0;
cured the problem but it makes no logical sense  ???

« Last Edit: February 13, 2017, 10:55:46 am by fopetesl »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #1 on: February 13, 2017, 11:44:55 am »
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...

Offline fopetesl

  • Single posting newcomer
  • *
  • Posts: 8
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #2 on: February 13, 2017, 03:24:41 pm »
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #3 on: February 13, 2017, 03:37:08 pm »
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?

Offline fopetesl

  • Single posting newcomer
  • *
  • Posts: 8
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #4 on: February 13, 2017, 04:38:18 pm »
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.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #5 on: February 13, 2017, 05:36:02 pm »
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?

Offline fopetesl

  • Single posting newcomer
  • *
  • Posts: 8
Re: Code::Blocks 16.01 suddenly won't compile or build
« Reply #6 on: February 13, 2017, 06:01:44 pm »
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.