Join us on Discord!
You can help CodeWalrus stay online by donating here.

Need some help with C++

Started by gameblabla, April 11, 2016, 11:28:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gameblabla

Hello guys,
never thought i would do that but when it comes to C++, i kind of suck.
Basically, i'm working on porting a Plus/4 & C16 emulator (yapeSDL) and it's programmed in C++.
It compiles fine with GCC 4.8 but it fails to build with GCC 5.3...
Why ? According to GCC :

main.cpp:61:30: error: invalid new-expression of abstract class type 'TED'
static TED    *ted8360 = new TED;
                              ^
In file included from main.cpp:24:0:
tedmem.h:30:7: note:   because the following virtual functions are pure within 'TED':
class TED:
       ^


I have posted the source code here :
https://github.com/gameblabla/yapeSDL_nspire

I looked at upstream but it seems like they have not fixed it.

Any ideas ?
Because i have yet to grapse the concept of classes...  :(
  • Calculators owned: None (used to own an Nspire and TI-89)

Scipi

Looks like there's an abstract method you forgot to define
  • Calculators owned: TI-83+, Nspire, Nspire CX, Casio Prizm




Powered by EzPortal