shift_reg_out.c is compiled twice #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/ws2812_driver.cincludesshift_reg_out.c, andCMakeLists.txtalso compilesshift_reg_out.cas a separate translation unit. Thusshift_out_init()andshift_out_put()are defined in two objects.The link succeeds only because the linker does not pull
shift_reg_out.c.objout of the static library:ws2812_driver.c.objalready defines all symbols. A shared library or a direct link of the objects fails.Include the header and keep the separate translation unit, or remove
shift_reg_out.cfrom the target.