News:

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

Main Menu

Help! Codeblocks does weird things assignment due in three days!

Started by dyd, October 20, 2009, 02:21:20 AM

Previous topic - Next topic

dyd

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

stahta01

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

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]

dyd

Okay thanks...

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