User forums > Help

Unsupported 16-Bit Application

(1/2) > >>

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

After run this code a pop up window show this message

The program or feature "\??C:\Users\Hossen\Desktop\C_Time\Alg\bin\Debug\Alg.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. )

Here is my build log

Build message mingw32-gcc.exe -Wall -g -c C:\Users\Hossen\Desktop\C_Time\Alg\main.c -o obj\Debug\main.o mingw32-g++.exe -o bin\Debug\Alg.exe obj\Debug\main.o Output file is bin\Debug\Alg.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))

Help me to solve this problem?

I'm Using windows 10 home X64
GNU GCC Compiler Codeblocks 20.03

BlueHazzard:
This "??\" in front of the path is strange...
Things you can try:
1) Can you run your program directly? Note, this will probably only flash shortly with a black screen, because you have no input at the end of your program, so it will close imediatly... (see http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_My_program_runs_in_codeblocks_but_if_i_start_it_from_the_outside_it_only_flashes_and_closes_immediately )
2) Do you have any anti virus running?
3) Have you installed any old compiler on your system?
4) Try a fresh rebuild (Build->Clean, Build->Build)


generally, if you post code or logs please use the code tags in the forum editor (the # symbol)

Hossen:
I don't have any anti virus except windows diffender.
How do i check my compiler is old or new?

BlueHazzard:
Open a command line:
1)  Start (or windows flag now)->type in

--- Code: ---cmd
--- End code ---
hit enter
A black window apears
in the black window type

--- Code: ---where mingw32-make.exe
--- End code ---

Post the output here. You can Copy text from the window by klicking on the top left corner of the black window->Edit->Mark Select the text and hit enter. Then you can paste it here

what about 1) and 4) ?

Hossen:
after refresh  and rebuild everything is same as before.
I don't know how to run program directly.

gcc-9.2.0
NFO: Could not find files for the given pattern(s).

Navigation

[0] Message Index

[#] Next page

Go to full version