Server Help

Bot Questions - Errors in compiling

TheOne - Wed Jan 18, 2006 5:04 pm
Post subject: Errors in compiling
I'm pretty new at programming, so I don't know much about this. Anyway, when I'm trying to compile a plugin, it gives me these errors:


error C2011: 'Ship_Types' : 'enum' type redefinition
error C2011: 'Chat_Modes' : 'enum' type redefinition
error C2011: 'Chat_Soundbytes' : 'enum' type redefinition
error C2011: 'Ship_Types' : 'enum' type redefinition
error C2011: 'ConnectionType' : 'enum' type redefinition


I'd appreciate any help you can give.
Default - Wed Jan 18, 2006 5:13 pm
Post subject:
There should be more information in your compiling errors.
TheOne - Wed Jan 18, 2006 5:25 pm
Post subject:
\spawn.h(13) : error C2011: 'Ship_Types' : 'enum' type redefinition
\clientprot.h(142) : see declaration of 'Ship_Types'
\spawn.h(26) : error C2011: 'Chat_SoundBytes' : 'enum' type redefinition
\clientprot.h(422) : see declaration of 'Chat_SoundBytes'
\spawn.h(62) : error C2011: 'Chat_Modes' : 'enum' type redefinition
\clientprot.h(223) : see declaration of 'Chat_Modes'
\spawn.h(76) : error C2011: 'ConnectType' : 'enum' type redefinition
\clientprot.h(405) : see declaration of 'ConnectType'
command.cpp
\spawn.h(13) : error C2011: 'Ship_Types' : 'enum' type redefinition
\clientprot.h(142) : see declaration of 'Ship_Types'
\spawn.h(26) : error C2011: 'Chat_SoundBytes' : 'enum' type redefinition
\clientprot.h(422) : see declaration of 'Chat_SoundBytes'
\spawn.h(62) : error C2011: 'Chat_Modes' : 'enum' type redefinition
\clientprot.h(223) : see declaration of 'Chat_Modes'
\spawn.h(76) : error C2011: 'ConnectType' : 'enum' type redefinition
\clientprot.h(405) : see declaration of 'ConnectType'
Bak - Wed Jan 18, 2006 6:37 pm
Post subject:
looks like some enums are redefined... did you make this plugin yourself are is it someone elses code? can you attach it?
CypherJF - Wed Jan 18, 2006 7:15 pm
Post subject:
Probably using an older tutorial src code; what I liked to call the Base Src for the plugin where the struct's have since been moved to the core files. :X
TheOne - Wed Jan 18, 2006 7:17 pm
Post subject:
It's the alias plugin, I was making some changes to it to better fit my zone.
Cyan~Fire - Fri Jan 20, 2006 10:28 pm
Post subject:
The alias plugin is outdated. Use catid's biller instead.
CypherJF - Sat Jan 21, 2006 12:19 am
Post subject:
I use the alias plugin on catid's site cause I can't modify the SSC biller to include a ?alias icon_wink.gif haha
Underlord - Sat Jan 21, 2006 2:45 pm
Post subject:
open spawn.h and remove the enum { .... }; sections that match the errors. you are using a newer core version that has the enums moved to the core, so they are getting declared twice.

attaching a modified spawn.h with the changes done for you
Cyan~Fire - Sat Jan 21, 2006 3:05 pm
Post subject:
@cypher: True, but it's still so hokey I couldn't bring myself to use it. icon_razz.gif
D1st0rt - Sat Jan 21, 2006 3:15 pm
Post subject:
Trench has to run their own alias bot too rofl
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group