Code::Blocks Forums

User forums => Help => Topic started by: dyd on October 20, 2009, 02:21:20 am

Title: Help! Codeblocks does weird things assignment due in three days!
Post by: dyd on October 20, 2009, 02:21:20 am
Hi, I have a computer assignment due in three days and my codeblocks is not doing some expected things:

for one: it does not ignore comments following // for some reason.  So //ajfdaskljfaskldjfaskld gives an error when clearly this is a comment (it is even highlighted gray, same colour as /* asdfas*/ but for some reason // does not get ignored.

for two: the for loop initial declaration used outside C99 mode???  what the heck is that?  I tested with a simple for loop:

for (int i = 0; i < 5; i++)
{
printf ("%d", i);
}

and the error shows up beside the for loop.

So, I installed and re-installed the newest version with a complete install, and nothing has changed.

I'm running on Winodows Vista and I thought that was the problem but my friend's vista computer cb works just fine.

Please help!  Thanks.  :?
Title: Re: Help! Codeblocks does weird things assignment due in three days!
Post by: stahta01 on October 20, 2009, 02:24:39 am
Problem likely caused by the compiler; suggest re-installing the compiler and/or using a website that supports the compiler.

To turn on full compiler logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Title: Re: Help! Codeblocks does weird things assignment due in three days!
Post by: dyd on October 20, 2009, 02:33:59 am
Okay thanks...

yeah I included this "C99 mode" in the compiler settings and it's working now.  Thanks anyways!