Skip to main content
rgree.1
Associate II
May 15, 2023
Solved

TouchGFX 4.21.4 including a Line shape in a screen causes undefined reference

  • May 15, 2023
  • 1 reply
  • 846 views

When including a Line shape in a Screen the Canvas Buffer gets set to the default size and then in the compile an undefined reference gets generated in the SelectorViewBase.cpp file constructor.

SelectorViewBase::~SelectorViewBase()

{

touchgfx::CanvasWidgetRenderer::resetBuffer();

}

Description Resource Path Location Type

undefined reference to `touchgfx::CanvasWidgetRenderer::resetBuffer()' SelectorViewBase.cpp

This topic has been closed for replies.
Best answer by rgree.1

Answered my own question, turns out the projects MCU G++ Linker settings had an incorrect Library Search path, once it was removed the correct libtouchgfx-float-abi-hard.a was recognized and the error resolved.

1 reply

rgree.1
rgree.1AuthorBest answer
Associate II
May 15, 2023

Answered my own question, turns out the projects MCU G++ Linker settings had an incorrect Library Search path, once it was removed the correct libtouchgfx-float-abi-hard.a was recognized and the error resolved.