Author Topic: Code::Blocks (Unsupported 16-Bit Application)  (Read 4012 times)

Offline Hossen

  • Single posting newcomer
  • *
  • Posts: 6
Code::Blocks (Unsupported 16-Bit Application)
« 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?
« Last Edit: February 18, 2020, 10:14:52 am by Hossen »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Code::Blocks (Unsupported 16-Bit Application)
« Reply #1 on: February 18, 2020, 10:33:00 am »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Hossen

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks (Unsupported 16-Bit Application)
« Reply #2 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))

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Code::Blocks (Unsupported 16-Bit Application)
« Reply #3 on: February 19, 2020, 04:21:57 pm »
Why do you think Try.exe is being ran instead of Ary.exe ?

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Code::Blocks (Unsupported 16-Bit Application)
« Reply #4 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.
« Last Edit: February 21, 2020, 03:34:30 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Hossen

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks (Unsupported 16-Bit Application)
« Reply #5 on: February 21, 2020, 10:55:17 am »
Now It's working  :) :)