my.o:my.cpp:(.rdata$_ZTVN2My6MyGameE[__ZTVN2My6MyGameE]+0x8): undefined reference to `__cxa_pure_virtual'
my.o:my.cpp:(.rdata$_ZTVN2My6MyGameE[__ZTVN2My6MyGameE]+0xc): undefined reference to `__cxa_pure_virtual'
my.o:my.cpp:(.rdata$_ZTIN2My6MyGameE[__ZTIN2My6MyGameE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
collect2.exe: error: ld returned 1 exit status
It happened after i added the 'MyGame' class
Seems to be something to do with the virtual functions
By the way, you can't extern "C" a class declaration. That doesn't make sense. extern "C" is used to call C functions from C++. Functions in a class are necessarily C++ functions.