Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Global Boards
Forum Rules | Mark all | Recent Posts

Global Boards
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Apr 23, 2003, 7:25 am
Go to the top of the page
Go to the bottom of the page

Saken
New Member
GroupMembers
Posts3
JoinedApr 14, 2003

Hey peeps :P
While waiting for gdb to be installed, came across this prob last night

I patched over the gboards snippet for smaug 1.4 with lots of errors due to mods. Manually patched. All .c files are ok..but when they go to include board.h, I get these errors:

board.h:37: redefinition of `struct global_board_data'
board.h:56: redefinition of `GLOBAL_BOARD_DATA'
board.h:56: `GLOBAL_BOARD_DATA' previously declared here

Any ideas?

-S
       
Post is unread #2 Apr 23, 2003, 12:10 pm
Go to the top of the page
Go to the bottom of the page

Trevlyn13
Apprentice
GroupMembers
Posts64
JoinedNov 30, 2007

board.h:37: redefinition of `struct global_board_data'
board.h:56: redefinition of `GLOBAL_BOARD_DATA'
board.h:56: `GLOBAL_BOARD_DATA' previously declared here

I can tell you what it means, and possible action. Specifics will depend on what your code looks like.

As it says, its tried defining the struct for global_board_data twice, which implies you have some form of line of the layout
typedef struct global_board_data
{
    //field1
    //field2
    // ...
} GLOBAL_BOARD_DATA;


declared with a slight typo which could result in decleration twice in the same statement (although not the first line its the first thing that popped into my head).

grep for GLOBAL_BOARD_DATA in you .h files and see where the repeats are same for the struct decleration.

If there are no repeats one other possibility is that you are #include'ing the board.h file too many times and its trying to define everything twice that way. In which case either look at all you #include's for board.h and ensure you aren't doubling up or put safe guards in like this around the entire contents of board.h

// check to see if board.h has already been included, if not include else skip it
#ifndef __BOARD_H
#define __BOARD_H

/** All your Board.h should go here

#endif


       
Pages:<< prev 1 next >>