r2044 on Linux

Post Reply
azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

r2044 on Linux

Post by azafaraht » Sat Dec 01, 2012 3:25 pm

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.
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

Re: r2044 on Linux

Post by azafaraht » Sat Dec 01, 2012 3:34 pm

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.
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

Re: r2044 on Linux

Post by azafaraht » Sat Dec 01, 2012 3:42 pm

Changed Line 54

void CStatusEffectContainer::KillAllStatusEffect():

to

void KillAllStatusEffect();

Compiled successfully.
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: r2044 on Linux

Post by whasf » Sat Dec 01, 2012 4:02 pm

I love it when people figure it out on their own. Thank you for posting the solution!
-- Whasf

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: r2044 on Linux

Post by kjLotus » Sat Dec 01, 2012 4:58 pm

dumb copy/paste mistake, apparently compiles fine in VS

fixed it now

azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

Re: r2044 on Linux

Post by azafaraht » Sat Dec 01, 2012 5:20 pm

Thanks for the source update. Compiled r2045 on same environment, everything ok.

You're right, VS accepts it, g++ doesn't like it.
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

Post Reply