Skip to content

Undefined reference error using PlatformIO as IDE #52

Description

@timothy3001

Hello guys,

this problem occured due to my little knowledge about compiler and linker stuff and how everything works together I guess, but I'm getting the following error whenever I'm trying to build the Blinky example in platformio:
ccWcx3C7.ltrans0.o:(.text.startup+0x66): undefined reference to ws2812_setleds(cRGB*, unsigned int)'`

As IDE I'm using platformio and I have absolutely no idea why I get this error. The header files of light_ws2812.h are found obviously, because there'd be a file not found error. I cannot find the reason for that undefined reference error, maybe you can guide me into the right direction.

As I said, I'm not an compiler / linker expert and can't really give you much information about my setup because i don't know how. But the config files of platformio tell me something about atmelavr and as a board I'm using ATTiny13.

Hopefully you can provide me with some information on how to investigate further. Unfortunately this really is all I'm getting right now. Maybe you do know some gcc parameters or something? I'd try to figure out how to set them in platformio

Thanks in advance
Timo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions