Xcode duplicate symbol error

后端 未结 5 455
轻奢々
轻奢々 2020-12-21 08:30

I am getting \"Apple Mach-O Linker (Id) Error\":

ld: duplicate symbol _matrixIdentity in /BlahBlah/Corridor.o and /Blahblah/Drawable.o for architecture i386
         


        
5条回答
  •  忘掉有多难
    2020-12-21 09:17

    In my case, I was implementing a function in the header file itself. Adding a static inline keyword before the function fixed the error for me.

提交回复
热议问题