Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Bing

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,396
629
DarrenPayn
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Overland Problem
Forum Rules | Mark all | Recent Posts

Overland Problem
< Newer Topic :: Older Topic > Can not compile Overland.h

Pages:<< prev 1 next >>
Post is unread #1 Jun 11, 2006, 8:50 pm
Go to the top of the page
Go to the bottom of the page

KazRo

GroupMembers
Posts41
JoinedSep 29, 2005

I installed the overland snippet into my mud. A Smaug 1.4a dev. Once I started to compile it, I go this error.

overland.h:63: error: array type has incomplete element type


I checked it out, and its this line..

extern const struct sect_color_type sect_show[];


Has anyone else seen this problem?
       
Post is unread #2 Jun 11, 2006, 8:59 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Take:
extern const struct sect_color_type sect_show[];


And try moving it down to the line above:
DECLARE_DO_FUN( do_mapedit ); /* Map OLC function */


The information in your bug report is sketchy at best, but barely enough to hint that you might be using a gcc 4.x compiler and the declaration is not valid until it knows what the struct is.
       
Post is unread #3 Jun 11, 2006, 9:00 pm
Go to the top of the page
Go to the bottom of the page

KazRo

GroupMembers
Posts41
JoinedSep 29, 2005

That fixed it, Thanks!
       
Post is unread #4 Jul 1, 2006, 7:04 am
Go to the top of the page
Go to the bottom of the page

mordecai

GroupMembers
Posts99
JoinedNov 17, 2005

This happened to me in gcc4.0, the older ones didn't complain.
       
Post is unread #5 Jul 1, 2006, 8:33 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Older compilers may not complain, but they should have complained. Each new version of gcc that comes along picks up on a few more bad coding practices. Not surprisingly, mud code tends to have alot of these bad practices.
       
Pages:<< prev 1 next >>