Page 1 of 1

r2044 on Linux

Posted: Sat Dec 01, 2012 3:25 pm
by azafaraht
Running Ubuntu 12.04 on VirtualBox. Updated source to r2044. Configure ran great.
Make stopped with the folloring error:

src/map/status_effect_container.h:54:7: error: extra qualification 'CSStatusEffectContainer::' on member 'KillAllStatusEffect' [-fpermissive]
make: *** [dsgame-ability.o] Error 1

Note: Ran both commands (configure and make) as sudo, even though source is in my home folder.

File status_effect_container.h & .cpp were changed on r2043.

Thanks everyone for your help.

Re: r2044 on Linux

Posted: Sat Dec 01, 2012 3:34 pm
by azafaraht
Been reading online, perhaps the error is prefixing the new method KillAllStatusEffect with the class name 'CSStatusEffectContainer::' since it's already in the class definition? I'll edit and test.

Re: r2044 on Linux

Posted: Sat Dec 01, 2012 3:42 pm
by azafaraht
Changed Line 54

void CStatusEffectContainer::KillAllStatusEffect():

to

void KillAllStatusEffect();

Compiled successfully.

Re: r2044 on Linux

Posted: Sat Dec 01, 2012 4:02 pm
by whasf
I love it when people figure it out on their own. Thank you for posting the solution!

Re: r2044 on Linux

Posted: Sat Dec 01, 2012 4:58 pm
by kjLotus
dumb copy/paste mistake, apparently compiles fine in VS

fixed it now

Re: r2044 on Linux

Posted: Sat Dec 01, 2012 5:20 pm
by azafaraht
Thanks for the source update. Compiled r2045 on same environment, everything ok.

You're right, VS accepts it, g++ doesn't like it.