When I started the program on OpenGL, I got an error about the incompatibility of a 16-bit program with a 32-bit system.

The version of this file is incompatible with the version of Windows being used. Use the system information to determine the appropriate version of the program (32-bit or 64-bit) and contact the software publisher.

Here is the code itself:

#include <iostream> #include <gl/glut.h> int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); glutInitWindowSize(500, 500); glutInitWindowPosition(200, 200); glutCreateWindow("kek"); glClearColor(0.0, 0.0, 0.0, 0.0); return 0; } 

And I have a question, is there a way to somehow rewrite this program under a 32-bit system?

  • 2
    “an error about incompatibility has come out” - so it had to be brought here, otherwise it’s not clear what this is about - VTT
  • @VTT "The version of this file is incompatible with the version of Windows being used. Using system information, determine the required version of the program (32-bit or 64-bit) and contact the software publisher." - kekula
  • 3
    Maybe you have a 64-bit application, and the system is 32-bit, is not it? In 2018, we must try to build a 16-bit application. - VTT
  • The library on which I wrote this application for over 10 years (OpenGL GLUT). - kekula
  • one
    Sorry, re-read the chat again. "I tried to install it, but when I tried to run the demo, which is issued by default in codeblocks, it just crashes" Are you talking about this? IMHO, it's easier to fix the frigloot than to make the usual work. - HolyBlackCat

0