News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

unsupported 16-bit application error [solved]

Started by Polar Wind, August 13, 2012, 04:13:00 AM

Previous topic - Next topic

Polar Wind

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.

MortenMacFly

Quote from: 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.
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

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.

MortenMacFly

Quote from: jens on August 13, 2012, 09:51:11 AM
And renaming a *.c to *.exe shows, [...]
OMG - I missed that. Well if that would work, ruling the world would be as easy as:

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Polar Wind

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

Polar Wind

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