Code::Blocks Forums

User forums => Help => Topic started by: Hossen on February 18, 2020, 10:11:42 am

Title: Code::Blocks (Unsupported 16-Bit Application)
Post by: Hossen on February 18, 2020, 10:11:42 am
I'm new in Codeblocks and programming world.
I write this code and get some problem, I insert a screenshots (picture) of the problem.

#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;
}

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 contract the software vendor to ask if a 64-bit Windows
compatible version is aviailable.

Any One help me, Please?
Title: Re: Code::Blocks (Unsupported 16-Bit Application)
Post by: stahta01 on February 18, 2020, 10:33:00 am
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Please post a full rebuild log and all information about your compiler!

Tim S.
Title: Re: Code::Blocks (Unsupported 16-Bit Application)
Post by: Hossen on February 19, 2020, 07:59:55 am
Build Message
mingw32-gcc.exe -Wall -g -c C:\Users\Hossen\Desktop\C_Time\Ary\main.c -o obj\Debug\main.o mingw32-g++.exe -o bin\Debug\Ary.exe obj\Debug\main.o Output file is bin\Debug\Ary.exe with size 28.48 KB Process terminated with status 0 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Title: Re: Code::Blocks (Unsupported 16-Bit Application)
Post by: stahta01 on February 19, 2020, 04:21:57 pm
Why do you think Try.exe is being ran instead of Ary.exe ?

Tim S.
Title: Re: Code::Blocks (Unsupported 16-Bit Application)
Post by: stahta01 on February 20, 2020, 02:19:53 am
If you still need help? I am still waiting on the full rebuild log!

Edit: The rebuild log is under "build log" not under "build messages"!

Without it I see nothing I can do to help you; except that you likely have the wrong Compiler or the wrong compiler option!

Edit2: My guess is that you set the compiler option "-m16" which would likely cause this error.

Tim S.
Title: Re: Code::Blocks (Unsupported 16-Bit Application)
Post by: Hossen on February 21, 2020, 10:55:17 am
Now It's working  :) :)