G++ Undefined Reference std::

前端 未结 2 653
迷失自我
迷失自我 2021-01-21 05:59

I\'ve been working on porting one of my games to Linux and can\'t seem to figure out the reasons for the errors I\'m received. The game was originally written in Visual Studio 2

相关标签:
2条回答
  • 2021-01-21 06:07

    As pointed out by Dietmar Kühl in the comments, I was using gcc to link, rather than g++.

    Upon amending the linking command, I received ...undefined reference to 'gluLookAt' which was fixed by adding -lGLU.

    0 讨论(0)
  • 2021-01-21 06:19

    As pointed out earlier by Dietmar Kühl in the comments, you should change the linker command from gcc to g++.

    0 讨论(0)
提交回复
热议问题