Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Errors in compiling

 
Post new topic   Reply to topic Printable version
 View previous topic  Tm_mer again (buy.ini) Post :: Post inv bot  View next topic  
Author Message
TheOne
Newbie


Age:41
Gender:Gender:Male
Joined: Sep 04 2005
Posts: 17
Offline

PostPosted: Wed Jan 18, 2006 5:04 pm    Post subject: Errors in compiling Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Default
Server Help Squatter


Age:44
Gender:Gender:Female
Joined: Aug 25 2005
Posts: 286
Offline

PostPosted: Wed Jan 18, 2006 5:13 pm    Post subject: Reply to topic Reply with quote

There should be more information in your compiling errors.
Back to top
View users profile Send private message Add User to Ignore List MSN Messenger
TheOne
Newbie


Age:41
Gender:Gender:Male
Joined: Sep 04 2005
Posts: 17
Offline

PostPosted: Wed Jan 18, 2006 5:25 pm    Post subject: Reply to topic Reply with quote

\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
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Jan 18, 2006 6:37 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Jan 18, 2006 7:15 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
TheOne
Newbie


Age:41
Gender:Gender:Male
Joined: Sep 04 2005
Posts: 17
Offline

PostPosted: Wed Jan 18, 2006 7:17 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Jan 20, 2006 10:28 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Jan 21, 2006 12:19 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Underlord
Novice


Gender:Gender:Male
Joined: Feb 17 2004
Posts: 55
Offline

PostPosted: Sat Jan 21, 2006 2:45 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Jan 21, 2006 3:05 pm    Post subject: Reply to topic Reply with quote

@cypher: True, but it's still so hokey I couldn't bring myself to use it. icon_razz.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sat Jan 21, 2006 3:15 pm    Post subject: Reply to topic Reply with quote

Trench has to run their own alias bot too rofl
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 61 page(s) served in previous 5 minutes.

phpBB Created this page in 0.485592 seconds : 37 queries executed (93.4%): GZIP compression disabled