SDL 2.0 won't initialize. Error: “Failed to connect to the Mir Server”

前端 未结 3 719
春和景丽
春和景丽 2021-01-20 04:17

I am running Ubuntu 14.04, and using Eclipse CDT.

In my program, I am trying to initialize SDL and if it doesn\'t initialize then output the error, but SDL_GetError(

3条回答
  •  醉梦人生
    2021-01-20 04:51

    I had this error when I was using gcc to compile. When I used g++ to compile it fixes the issue. The Lazy Foo tutorial also recommends you to use g++ to compile.

    If you are having this problem you can try using g++ to compile and see if this resolves the issue.

提交回复
热议问题