U8g2: U8g2 and Ucg combine error

Created on 10 May 2018  路  3Comments  路  Source: olikraus/u8g2

Hello,
I need the U8g2 and Ucg libs in the same sketch, but I get errors like:

_libraries\U8g2\clib\u8g2_polygon.c.o (symbol from plugin): In function pg_ClearPolygonXY': (.text+0x0): multiple definition ofpg_ClearPolygonXY'
libraries\Ucglib\clib\ucg_polygon.c.o (symbol from plugin):(.text+0x0): first defined here
libraries\U8g2\clib\u8g2_polygon.c.o (symbol from plugin): In function pg_ClearPolygonXY': (.text+0x0): multiple definition ofpg_AddPolygonXY'
libraries\Ucglib\clib\ucg_polygon.c.o (symbol from plugin):(.text+0x0): first defined here
libraries\U8g2\clib\u8g2_polygon.c.o (symbol from plugin): In function pg_ClearPolygonXY': (.text+0x0): multiple definition ofpg_DrawPolygon'
libraries\Ucglib\clib\ucg_polygon.c.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1_

can you fix this?

bug

Most helpful comment

Thanks for reporting. I have fixed https://github.com/olikraus/u8g2/blob/master/csrc/u8g2_polygon.c
You could just replace this file in your local installation.

All 3 comments

Thanks for reporting. I have fixed https://github.com/olikraus/u8g2/blob/master/csrc/u8g2_polygon.c
You could just replace this file in your local installation.

It works fine, thumbs up for quick editing.

:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WaRZaT picture WaRZaT  路  3Comments

BrickBee picture BrickBee  路  3Comments

mattogodoy picture mattogodoy  路  9Comments

Robiv8 picture Robiv8  路  5Comments

Bonnie12 picture Bonnie12  路  6Comments