Trying to make a menuscreen

3 posts / 0 new
Last post
workhard
workhard's picture
Offline
Mobile Conjurer
Joined: 3 May 2011
Posts:
Trying to make a menuscreen

Keep getting this error .

C:\MoSync\workspace\MoDrive\StartScreen.cpp:64: Error: Unresolved symbol '__ZN11StartScreen18menuOptionSelectedEi',
C:\MoSync\workspace\MoDrive\StartScreen.cpp:64: Error: Unresolved symbol '__ZThn16_N11StartScreen18menuOptionSelectedEi',

i have attached the project anyone can try to help solve the error?
thank you.

AttachmentSize
MoDrive.zip240.6 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

In your start screen class you need to implement the method menuOptionSelected(int index), you will need to have code like this:

In StartScreen.h

void menuOptionSelected(int index);

And in StartScreen.cpp you will need

void StartScreen::menuOptionSelected(int index)
{
  lprintfln("You pressed the %d option", index);
  show();
}

workhard
workhard's picture
Offline
Mobile Conjurer
Joined: 3 May 2011
Posts:

thanks sam,