Why aren't include guards or pragma once working?

前端 未结 3 698
逝去的感伤
逝去的感伤 2021-02-08 09:47

I\'m compiling some code that relies on include guards to prevent multiple definitions of objects and functions, but Visual Studio 2008 is giving me link errors that there are m

3条回答
  •  悲&欢浪女
    2021-02-08 10:01

    This can also be caused by using different versions of the cstd lib from other library's linked in. Check under the c++/Code generation section and make sure all your projects are using the same settings.

提交回复
热议问题