Code: Select all
import "ecere"
class ITest
{
public:
uint x;
int Read(int i);
void Write();
}
class ITest2 : ITest
{
uint x;
int Read(int i)
{
return i;
}
void Write()
{
}
}
class M
{
bool Test(ITest it)
{
it.Read(10);
}
int main(int argc,char **argv)
{
ITest2 it2{};
Test(it2);
return(0);
}
}
Linking...
Linker Error: obj/debug.win32/Itest.o: In function `__ecereMethod_M_Test':
Itest.ec:31: error: undefined reference to `__ecereMethod_ITest_Read'
collect2.exe: error: ld returned 1 exit status