Author |
Message |
TheOne Newbie

Age:41 Gender: Joined: Sep 04 2005 Posts: 17 Offline
|
Posted: 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.
|
|
Back to top |
|
 |
Default Server Help Squatter

Age:44 Gender: Joined: Aug 25 2005 Posts: 286 Offline
|
Posted: Wed Jan 18, 2006 5:13 pm Post subject: |
 |
|
|
|
There should be more information in your compiling errors.
|
|
Back to top |
|
 |
TheOne Newbie

Age:41 Gender: Joined: Sep 04 2005 Posts: 17 Offline
|
Posted: 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'
Last edited by TheOne on Wed Jan 18, 2006 7:18 pm, edited 1 time in total |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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?
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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 _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
TheOne Newbie

Age:41 Gender: Joined: Sep 04 2005 Posts: 17 Offline
|
Posted: 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.
alias.zip - 98.57 KB
File downloaded or viewed 15 time(s)
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Jan 20, 2006 10:28 pm Post subject: |
 |
|
|
|
The alias plugin is outdated. Use catid's biller instead. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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 haha
|
|
Back to top |
|
 |
Underlord Novice
Gender: Joined: Feb 17 2004 Posts: 55 Offline
|
Posted: 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
fixed spawn.h
spawn.h - 2.6 KB
File downloaded or viewed 17 time(s)
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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.
|
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sat Jan 21, 2006 3:15 pm Post subject: |
 |
|
|
|
Trench has to run their own alias bot too rofl _________________
|
|
Back to top |
|
 |
|