"undefined reference to `typeinfo for touchgfx::.." errors with RTTI (run-time type information) enabled
I'm working on a STM32F7 software project with TouchGFX, FreeRTOS, lwIP and more. Now I'm playing with the "cereal" library for serialization which needs the RTTI option enabled. So I unchecked the -fno_rtti option in the compiler/linker options.
But this gives me a lot of linker errors for the TouchGFX code:
ld.exe: [...] undefined reference to `typeinfo for touchgfx::Application' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Container' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Drawable' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Container' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Screen' ld.exe: [...] undefined reference to `typeinfo for touchgfx::TextAreaWithWildcardBase' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Image' ld.exe: [...] undefined reference to `typeinfo for touchgfx::Screen' ld.exe: [...] undefined reference to `typeinfo for touchgfx::DMA_Interface' ld.exe: [...] undefined reference to `typeinfo for touchgfx::AbstractPartition' ld.exe: [...] undefined reference to `typeinfo for touchgfx::AbstractPartition' ld.exe: [...] undefined reference to `typeinfo for touchgfx::AbstractPartition' ld.exe: [...] undefined reference to `typeinfo for touchgfx::HAL'
After a little "research" I think that I would need a TouchGFX lib also compiled with RTTI enabled. Are there any suggestions on how to solve this?
Regards
Tom
