Author Topic: not getting errors  (Read 9332 times)

tinfoilknight

  • Guest
not getting errors
« on: May 30, 2013, 06:50:37 am »
Hi. I'm just self learning the C language by following the instructions in a book. I'm running C::B 10.5 and have MinGW in the directory. I'm trying to get C::B to "show all errors" but it isn't giving me the expected errors. When I go to Settings->Compiler and Debugger, GNU GCC Compliler is on top. I have followed these instructions:

After installation, please do the following:
1. Open the "Settings" menu
2. Click on "Compiler and Debugger"
3. In the middle of the screen you will see "Compiler Flags"; enable the following flags
"Enable all compiler warnings (overrides every other setting) [-Wall]", and
"Treat as errors the warnings demanded by strict ISO C and ISO C++ [-pedantic-errors]
by clicking on the rectangle on the left.
      
When I compile this program I should get a "value out of range" error but instead I get "Process terminated with status 0 (0 minutes, 0 seconds) 0 errors, 0 warnings"


#include <stdio.h>
int main()
{
    char c;
    for(c=0;c<128;c++)
    {
        printf("%d\t",c);
    }
    return(0);
}

MinGW is tdm-mingw-1.908.0-4.4.1-2.exe
C::B is 10.5
Microsoft Windows XP SP3

Before suggesting downloading the latest version, please keep in mind I'm on dial up for the next few weeks. I've found this problem posted with other versions but no solutions.

Thanks, Grant.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: not getting errors
« Reply #1 on: May 30, 2013, 07:02:13 am »
Please respect the forum rules.

When registering here, you accepted to do so.

Compiler related questions belong to the compilers mailing lists / forums or general programming forums.

Only C::B related questions are allowed here.

Topic locked !!