Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2220 Unsupported 16-Bit application and windows 8

OTHER
unread
nobody
None
Bug
none
Unknown
False
2014-06-19
2014-06-19
Ove
No

Everything works fine on windows 7 but on windows 8.1 I'm having problem running code in c++. Windows 8 works for c code but not for c++. All I'm doing is "hello world"

This is what happens when I run the .exe from a compiled .h using g++

Unsupported 16-Bit application

The program or feature "\??\C:\Users\Ove\Desktop\Cpp\test.exe" cannot start or run due to incompatibly with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

Says on "sourceforge.net/projects/mingw/" that "All of MinGW's software will execute on the 64bit Windows platforms."

my gcc version 4.8.1 (GCC)

I've tried:

reinstalling mingw
compatibility mode
administrator
compiling in windows 7 and running it in windows 8 worked but was annoying. It also did NOT work in the reverse

Discussion

  • Ove
    Ove
    2014-06-19

    I figured it out. I compiled as .h and not as .cpp....

    I'm the best programmer in the entire world :3