Code::Blocks Forums

User forums => Help => Topic started by: Polar Wind on August 13, 2012, 04:13:00 am

Title: unsupported 16-bit application error [solved]
Post by: Polar Wind on August 13, 2012, 04:13:00 am
Greetings,
I just installed Code::Blocks.  I'm running Windows Vista, 64-bit.  I also installed the latest version of
MinGW, as the downloads page says that it's compatible with Vista.

So, I typed up a simple program, in C, to display, "This is a C program"
Code Blocks saved this simple program as a .c file.
When I went to build and run I kept getting a pop-up window that said that the program had not been
built yet.  It asked if I wanted to build it. I clicked yes.  This happened over and over.
Finally, I changed the file extension to .exe

Then, it did attempt to run the simple program, however an error message popped up with the title,
"Unsupported 16-bit Application."  The message said,  
"The program or feature "\??\C:\Users\Tim\C Programs\Simple Program.exe"
cannot start or run due to incompatibility with 64-bit versions of Windows. Please contact the
software vendor to ask if a 64-bit compatible version is available."

I'm new to programming. I've been attempting to research a solution to this problem for hours.  
Any help would be appreciated, very much.

Thank you, in advance.
Title: Re: unsupported 16-bit application error
Post by: MortenMacFly on August 13, 2012, 07:04:42 am
Greetings,
I just installed Code::Blocks.  I'm running Windows Vista, 64-bit.  I also installed the latest version of
MinGW, as the downloads page says that it's compatible with Vista.
What vendor and version of C::B and MinGW/GCC exactly? There are roughly 500 version of Code::Blocks and about the same amount of MinGW available. "latest version" is not meaningful.
Title: Re: unsupported 16-bit application error
Post by: Jenna on August 13, 2012, 09:51:11 am
And renaming a *.c to *.exe shows, that you miss the absolute basics of what a compiler/linker is and does.
But this can not (and will not) be teached here.
Title: Re: unsupported 16-bit application error
Post by: MortenMacFly on August 13, 2012, 05:20:05 pm
And renaming a *.c to *.exe shows, [...]
OMG - I missed that. Well if that would work, ruling the world would be as easy as:
Code
int RuleTheWord()
{
  return 1; // Do rule!
}
int main (void)
{
  return RuleTheWord();
}
;D
Title: Re: unsupported 16-bit application error
Post by: Polar Wind on August 13, 2012, 08:01:45 pm
Hi Morten and Jens,

Thank you very much for the replies. 

I downloaded version 10.05 of C::B from sourceforge.net accessed by
a link on the C::B website downloads page.  Regarding MinGW, the download link on the sourceforge
page says, "Looking for the latest version? Download mingw-get-inst-20120426.exe (662.7 kB)".  I believe it's
version 4.7.0
Title: Re: unsupported 16-bit application error
Post by: Polar Wind on August 14, 2012, 12:47:06 am
Problem solved.

Reinstalled after watching a youtube vid.  (Didn't install in program files, this time, as per the advice on the vid.)

Thank you, again, for your responses.

Cheers