error running a compiled C++ file (uses OpenGL). Error: “Inconsistency detected by ld.so: dl-version.c: 224”

后端 未结 2 1016
广开言路
广开言路 2021-02-19 19:27

I created a simple opengl file in cpp. It works on the University computer. I\'m able to compile the file, but i can not run the compiled file. The error I get is:



        
2条回答
  •  暖寄归人
    2021-02-19 19:46

    If you have an nvidia graphics card like mine, this might work for you

    
        g++ -L/usr/lib/nvidia-304/ your-file.cc -lglut -lGLEW -lGL
    
    

    Replace the 304 with the nvidia driver version. More details about this bug can be found at this link.

提交回复
热议问题