CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: gameblabla on April 11, 2016, 11:28:39 PM

Title: Need some help with C++
Post by: gameblabla on April 11, 2016, 11:28:39 PM
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 (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...  :(
Title: Re: Need some help with C++
Post by: Scipi on April 12, 2016, 12:18:24 AM
Looks like there's an abstract method you forgot to define