Skip to content

Compiler/Linker errors on 0.3.0 #22

Description

@swbradshaw

I can get the 0.2.6 working in my platform.io project on T-Watch S3, but using 0.3.0 has been leading to linker errors. I did have to address some of the code changes (init -> begin) on some of the sensors to get it compiling, but that leads to these linker errors:

c:/users/compo/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio\build\twatch-s3\src\LilyGoLib.cpp.o:(.literal._ZN13SensorPCF85635beginER7TwoWireii[_ZN13SensorPCF85635beginER7TwoWireii]+0x0): 
undefined reference to `PCF8563Constants::PCF8563_SLAVE_ADDRESS'
c:/users/compo/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio\build\twatch-s3\src\LilyGoLib.cpp.o:(.literal._ZN9LilyGoLib5beginEP6Stream+0x58): 
undefined reference to `DRV2605Constants::DRV2605_SLAVE_ADDRESS'

These are protected constants defined in the library and I had no luck trying to override this without getting redefined errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions