News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks (Unsupported 16-Bit Application)

Started by Hossen, February 18, 2020, 10:11:42 AM

Previous topic - Next topic

Hossen

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?

stahta01

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]

Hossen

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))

stahta01

Why do you think Try.exe is being ran instead of Ary.exe ?

Tim S.
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]

stahta01

#4
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.
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]

Hossen