Code::Blocks Forums
User forums => Help => Topic started 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?
-
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.
-
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))
-
Why do you think Try.exe is being ran instead of Ary.exe ?
Tim S.
-
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.
-
Now It's working :) :)