G++ Undefined Reference std::

前端 未结 2 654
迷失自我
迷失自我 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.

提交回复
热议问题