Author Topic: Help! Codeblocks does weird things assignment due in three days!  (Read 4559 times)

dyd

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Help! Codeblocks does weird things assignment due in three days!
« Reply #1 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

C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

dyd

  • Guest
Re: Help! Codeblocks does weird things assignment due in three days!
« Reply #2 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!