Regarding a function-definition

4 posts / 0 new
Last post
workhard
workhard's picture
Offline
Mobile Conjurer
Joined: 3 May 2011
Posts:
Regarding a function-definition

Having this error .

Symbol '_moblet' is already defined,
any ways to solve?

i have add in the file for u guys to take a look.

AttachmentSize
Test1.zip97.31 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
workhard
workhard's picture
Offline
Mobile Conjurer
Joined: 3 May 2011
Posts:

still working on this error . anyone could give some idea?

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Hi, you've got moblet defined twice, and out of the scope of any specific class, so when it says '_moblet' is already defined, you can read that as 'moblet' (your variable MyMoblet*) has already been defined - once in main.cpp and once in EditBoxScreen.cpp. It doesn't like it that you've created two variables with the same name.

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

than wat should i do? change the name to MyMoblets? ( with additional 's') or ??

i have create this

MyMoblet *moblet;

in my both main.cpp, editboxscreen.cpp

so i just need to change editboxscreen.cpp
to
MyMoblet *moblets; ??