Author Topic: unsupported 16-bit application error [solved]  (Read 17909 times)

Offline Polar Wind

  • Single posting newcomer
  • *
  • Posts: 3
unsupported 16-bit application error [solved]
« 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.
« Last Edit: August 14, 2012, 12:47:32 am by Polar Wind »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: unsupported 16-bit application error
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: unsupported 16-bit application error
« Reply #2 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: unsupported 16-bit application error
« Reply #3 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
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Polar Wind

  • Single posting newcomer
  • *
  • Posts: 3
Re: unsupported 16-bit application error
« Reply #4 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

Offline Polar Wind

  • Single posting newcomer
  • *
  • Posts: 3
Re: unsupported 16-bit application error
« Reply #5 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