'Codeblocks 16-bit message

enter image description hereI'm new in Codeblocks and programming world.

( Unsupported 16-Bit Application

The program or feature "\??C:\Users\Hossen\Desktop\C_Time\try\bin\Debug\Try.exe" cannot start or run due to incompatibity with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available. )

my Codeblocks showing this message and didn't print a single line. Recently I'm facing this problem. Any One help me to solve this problem, please?

#include <stdio.h> 
#include <stdlib.h> 
int main()
{
    int a, b, c, GCD;
    a = 10;
    b = 20;
    for (c = 1; c <= a && c <= b; c++)
    {
        if (a % c == 0 && b % c == 0)
        {
            GCD = c;
        }
    }
    printf("%d\n", GCD);
    return 0;
}


Solution 1:[1]

The code looks ok, so I guess your installation is not correct.

As you are new, to keep it simple, you probably just should reinstall Code::Blocks.

Check you have the correct version downloaded before installing. (Supporting 64bit Operating Systems, not 32 Bits)

And then try installing it in Program Files.

Hope this will help.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1