Hi all,
I am developing an C++ application in the CCS (v6.01) for the AM437x processor using Sys/BIOS (6.41.4.54) and Linaro GCC compiler (version 4.9.3).
The problem is that the Linaro can´t compile the code with virtual functions, I allways get this error
"undefined reference to `vtable for __cxxabiv1::__si_class_type_info'"
Here´s the example code
// AbstractExampleClass.h
class AbstractExampleClass
{
public:
virtual int oveverrideFunction(int x) = 0;
};
// Test.h
class Test : public AbstractExampleClass
{
public:
int oveverrideFunction(int x);
};
// Test.cpp - dummy implementation
int Test::oveverrideFunction(int x)
{
return x;
}
After removing virtual keyword everything compiles normally.
This code can be normally compiled with the TI´s compiler, but the problem is that TI´s compiler doesn´t support SYS/BIOS on AM437x core.
I would like to know if it is possible to compile virtual functions with the Linaro GCC compiler at all. And if so which compiler properties have to be set.
Thank you,
Slaven