Resolving a linker error: undefined reference to static class members

后端 未结 4 1256
甜味超标
甜味超标 2020-12-21 03:31

My code is Arduinoish. I turned on verbose compiling so I could verify that all the .o files are indeed getting passed to the linker correctly, and they are (linker command

4条回答
  •  Happy的楠姐
    2020-12-21 04:20

    I know this is somewhat dead, but in my case I forgot to define the methods I was referencing, imagine that.......

    Yes they were DECLARED, but when I checked my .cpp file, there was no definition for them, so this time the error was literal.

提交回复
热议问题