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, DotBot

Members: 0
Guests: 9
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 » Weather Snippet
Forum Rules | Mark all | Recent Posts

Weather Snippet
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2, 3 next >>
Post is unread #1 Jan 27, 2008, 12:23 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Hello,

Just tried to install the weather snippet on a modified smaug code base and got this error.

Compiling o/imc.o
In file included from h/mud.h:216,
from imc.c:48:
h/weather.h:66: error: variably modified âweatherMapâ at file scope
h/weather.h:66: error: array type has incomplete element type
h/weather.h:67: error: variably modified âweatherDeltaâ at file scope
h/weather.h:67: error: array type has incomplete element type
In file included from imc.c:48:
h/mud.h:2406: error: expected specifier-qualifier-list before âWEATHER_DATAâ
h/mud.h:3541: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âweather_infoâ

which points at these lines in weather.h

//So it can be utilized from other parts of the code
extern struct WeatherCell weatherMap[WEATHER_SIZE_X][WEATHER_SIZE_Y];
extern struct WeatherCell weatherDelta[WEATHER_SIZE_X][WEATHER_SIZE_Y];

mud.h line 2406 is
weather_data in area_data I have now removed that as it shouldn't be there. That should be added to snippet.

mud.h line 3541 is
extern WEATHER_DATA weather_info; I removed that as well.

Still left with this when I tried to make clean

Compiling o/imc.o
In file included from h/mud.h:216,
from imc.c:48:
h/weather.h:66: error: variably modified âweatherMapâ at file scope
h/weather.h:66: error: array type has incomplete element type
h/weather.h:67: error: variably modified âweatherDeltaâ at file scope
h/weather.h:67: error: array type has incomplete element type
make[2]: *** [o/imc.o] Error 1


If anyone has ideas I could use some help. Thanks.


       
Post is unread #2 Jan 27, 2008, 12:31 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

changed #include weather.h from mud.h to weather.c

took care of some problems

then noticed

pulse_auction define in mud.h is missing a ) in the snippet. Heh, don't blindly copy and paste like me.

       
Post is unread #3 Jan 27, 2008, 12:44 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Noticed const.c wants to know max_climate call from weather.h so I included weather.h but got this message.

In file included from const.c:14:
h/weather.h:66: error: variably modified âweatherMapâ at file scope
h/weather.h:66: error: array type has incomplete element type
h/weather.h:67: error: variably modified âweatherDeltaâ at file scope
h/weather.h:67: error: array type has incomplete element type
const.c:424: error: variably modified âtemp_settingsâ at file scope
const.c:426: warning: excess elements in array initializer
const.c:426: warning: (near initialization for âtemp_settingsâ;)
const.c:427: warning: excess elements in array initializer
const.c:427: warning: (near initialization for âtemp_settingsâ;)
const.c:428: warning: excess elements in array initializer
const.c:428: warning: (near initialization for âtemp_settingsâ;)
const.c:429: warning: excess elements in array initializer
const.c:429: warning: (near initialization for âtemp_settingsâ;)
const.c:432: error: variably modified âprecip_settingsâ at file scope
const.c:434: warning: excess elements in array initializer
const.c:434: warning: (near initialization for âprecip_settingsâ;)
const.c:435: warning: excess elements in array initializer
const.c:435: warning: (near initialization for âprecip_settingsâ;)
const.c:436: warning: excess elements in array initializer
const.c:436: warning: (near initialization for âprecip_settingsâ;)
const.c:437: warning: excess elements in array initializer
const.c:437: warning: (near initialization for âprecip_settingsâ;)
const.c:440: error: variably modified âwind_settingsâ at file scope
const.c:442: warning: excess elements in array initializer
const.c:442: warning: (near initialization for âwind_settingsâ;)
const.c:443: warning: excess elements in array initializer
const.c:443: warning: (near initialization for âwind_settingsâ;)
const.c:444: warning: excess elements in array initializer
const.c:444: warning: (near initialization for âwind_settingsâ;)
const.c:445: warning: excess elements in array initializer
const.c:445: warning: (near initialization for âwind_settingsâ;)
make[1]: *** [o/const.o] Error 1
       
Post is unread #4 Jan 27, 2008, 12:45 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

which brings me back to these 2 lines in weather.h that my compiler seems to not like at all

extern struct WeatherCell weatherMap[WEATHER_SIZE_X][WEATHER_SIZE_Y];
extern struct WeatherCell weatherDelta[WEATHER_SIZE_X][WEATHER_SIZE_Y];
       
Post is unread #5 Jan 27, 2008, 12:58 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Well it would seem Kayle has his work cut out for him on the snippet directions. If it's any consolation, the SmaugFUSS 1.9 package that includes the weather code compiles cleanly and works properly as far as I could tell.
       
Post is unread #6 Jan 27, 2008, 1:04 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

I think it's a matter of where to put the include weather.h in mud.h

It seems very picky.

       
Post is unread #7 Jan 27, 2008, 1:22 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Hrm,

Thats not it. I put #include "weather.h"

in the same place smaugfuss1.9 has it right after xbi
       
Post is unread #8 Jan 27, 2008, 1:47 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Wow,

I tried a whole slew of combinations even comparing smaugfuss1.9 with what I got and if I place #include "weather.h" in my mud.h Replacing weather.h with smaugfuss weather.h still doesn't help.

I always get this error.

Compiling o/imc.o
In file included from h/mud.h:321,
from imc.c:48:
h/weather.h:66: error: variably modified âweatherMapâ at file scope
h/weather.h:66: error: array type has incomplete element type
h/weather.h:67: error: variably modified âweatherDeltaâ at file scope
h/weather.h:67: error: array type has incomplete element type
make[2]: *** [o/imc.o] Error 1

I wonder if smaugfuss changed something else involving weather that this snippet doesn't take into account?
I can't find anything, but this is very odd.

       
Post is unread #9 Jan 27, 2008, 2:19 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

in weather.h

I changed

extern struct WeatherCell weatherMap[WEATHER_SIZE_X][WEATHER_SIZE_Y];
extern struct WeatherCell weatherDelta[WEATHER_SIZE_X][WEATHER_SIZE_Y];

to

extern struct WeatherCell *weatherMap[3][3];
extern struct WeatherCell *weatherDelta[3][3];

That gets me past the weather.h problems from the start, but now just got const.c freaking out about.... max_climate I assume

Compiling o/const.o
const.c:424: error: variably modified âtemp_settingsâ at file scope
const.c:426: warning: excess elements in array initializer
const.c:426: warning: (near initialization for âtemp_settingsâ;)
const.c:427: warning: excess elements in array initializer
const.c:427: warning: (near initialization for âtemp_settingsâ;)
const.c:428: warning: excess elements in array initializer
const.c:428: warning: (near initialization for âtemp_settingsâ;)
const.c:429: warning: excess elements in array initializer
const.c:429: warning: (near initialization for âtemp_settingsâ;)
const.c:432: error: variably modified âprecip_settingsâ at file scope
const.c:434: warning: excess elements in array initializer
const.c:434: warning: (near initialization for âprecip_settingsâ;)
const.c:435: warning: excess elements in array initializer
const.c:435: warning: (near initialization for âprecip_settingsâ;)
const.c:436: warning: excess elements in array initializer
const.c:436: warning: (near initialization for âprecip_settingsâ;)
const.c:437: warning: excess elements in array initializer
const.c:437: warning: (near initialization for âprecip_settingsâ;)
const.c:440: error: variably modified âwind_settingsâ at file scope
const.c:442: warning: excess elements in array initializer
const.c:442: warning: (near initialization for âwind_settingsâ;)
const.c:443: warning: excess elements in array initializer
const.c:443: warning: (near initialization for âwind_settingsâ;)
const.c:444: warning: excess elements in array initializer
const.c:444: warning: (near initialization for âwind_settingsâ;)
const.c:445: warning: excess elements in array initializer
const.c:445: warning: (near initialization for âwind_settingsâ;)
make[2]: *** [o/const.o] Error 1
       
Post is unread #10 Jan 27, 2008, 2:24 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

changed
char *const temp_settings[MAX_CLIMATE]

TO

char *const temp_settings[11]

fixed those errors
       
Post is unread #11 Jan 27, 2008, 3:19 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Wow, thought I had it, cause got to last file, and then whammy...

Compiling o/weather.o
weather.c: In function âInitializeWeatherMapâ:
weather.c:122: warning: initialization from incompatible pointer type
weather.c: In function âApplyDeltaChangesâ:
weather.c:176: warning: initialization from incompatible pointer type
weather.c:177: warning: initialization from incompatible pointer type
weather.c: In function âCalculateCellToCellChangesâ:
weather.c:758: warning: initialization from incompatible pointer type
weather.c:802: warning: initialization from incompatible pointer type
weather.c:803: warning: initialization from incompatible pointer type
weather.c:860: warning: initialization from incompatible pointer type
weather.c:861: warning: initialization from incompatible pointer type
weather.c: In function âEnforceClimateConditionsâ:
weather.c:944: warning: initialization from incompatible pointer type
weather.c:945: warning: initialization from incompatible pointer type
weather.c: In function âRandomizeCellsâ:
weather.c:1257: warning: initialization from incompatible pointer type
weather.c: In function âsave_weathermapâ:
weather.c:2279: warning: initialization from incompatible pointer type
weather.c: In function âfread_cellâ:
weather.c:2299: warning: initialization from incompatible pointer type
weather.c: In function âgetWeatherCellâ:
weather.c:2405: warning: return from incompatible pointer type
weather.c: In function âdo_setweatherâ:
weather.c:3060: warning: initialization from incompatible pointer type
weather.c: In function âdo_showweatherâ:
weather.c:3147: warning: initialization from incompatible pointer type
o/magic.o:(.rodata+0xee0): multiple definition of `WEATHER_SIZE_X'
o/const.o:(.rodata+0x0): first defined here
o/magic.o:(.rodata+0xee4): multiple definition of `WEATHER_SIZE_Y'
o/const.o:(.rodata+0x4): first defined here
o/magic.o:(.rodata+0xee8): multiple definition of `HEMISPHERE_NORTH'
o/const.o:(.rodata+0x8): first defined here
o/magic.o:(.rodata+0xeec): multiple definition of `HEMISPHERE_SOUTH'
o/const.o:(.rodata+0xc): first defined here
o/magic.o:(.rodata+0xef0): multiple definition of `HEMISPHERE_MAX'
o/const.o:(.rodata+0x10): first defined here
o/magic.o:(.rodata+0xef4): multiple definition of `CLIMATE_RAINFOREST'
o/const.o:(.rodata+0x14): first defined here
o/magic.o:(.rodata+0xef8): multiple definition of `CLIMATE_SAVANNA'
o/const.o:(.rodata+0x18): first defined here
o/magic.o:(.rodata+0xefc): multiple definition of `CLIMATE_DESERT'
o/const.o:(.rodata+0x1c): first defined here
o/magic.o:(.rodata+0xf00): multiple definition of `CLIMATE_STEPPE'
o/const.o:(.rodata+0x20): first defined here
o/magic.o:(.rodata+0xf04): multiple definition of `CLIMATE_CHAPPARAL'
o/const.o:(.rodata+0x24): first defined here
o/magic.o:(.rodata+0xf08): multiple definition of `CLIMATE_GRASSLANDS'
o/const.o:(.rodata+0x28): first defined here
o/magic.o:(.rodata+0xf0c): multiple definition of `CLIMATE_DECIDUOUS'
o/const.o:(.rodata+0x2c): first defined here
o/magic.o:(.rodata+0xf10): multiple definition of `CLIMATE_TAIGA'
o/const.o:(.rodata+0x30): first defined here
o/magic.o:(.rodata+0xf14): multiple definition of `CLIMATE_TUNDRA'
o/const.o:(.rodata+0x34): first defined here
o/magic.o:(.rodata+0xf18): multiple definition of `CLIMATE_ALPINE'
o/const.o:(.rodata+0x38): first defined here
o/magic.o:(.rodata+0xf1c): multiple definition of `CLIMATE_ARCTIC'
o/const.o:(.rodata+0x3c): first defined here
o/magic.o:(.rodata+0xf20): multiple definition of `MAX_CLIMATE'
o/const.o:(.rodata+0x40): first defined here
o/pfiles.o: In function `fread_timedata':
/home/vladaar/6dragons/src/pfiles.c:57: multiple definition of `fread_timedata'
o/calendar.o:/home/vladaar/6dragons/src/calendar.c:348: first defined here
o/pfiles.o: In function `load_timedata':
/home/vladaar/6dragons/src/pfiles.c:89: multiple definition of `load_timedata'
o/calendar.o:/home/vladaar/6dragons/src/calendar.c:391: first defined here
o/pfiles.o: In function `save_timedata':
/home/vladaar/6dragons/src/pfiles.c:34: multiple definition of `save_timedata'
o/calendar.o:/home/vladaar/6dragons/src/calendar.c:443: first defined here
o/update.o:(.rodata+0x578): multiple definition of `WEATHER_SIZE_X'
o/const.o:(.rodata+0x0): first defined here
o/update.o:(.rodata+0x57c): multiple definition of `WEATHER_SIZE_Y'
o/const.o:(.rodata+0x4): first defined here
o/update.o:(.rodata+0x580): multiple definition of `HEMISPHERE_NORTH'
o/const.o:(.rodata+0x8): first defined here
o/update.o:(.rodata+0x584): multiple definition of `HEMISPHERE_SOUTH'
o/const.o:(.rodata+0xc): first defined here
o/update.o:(.rodata+0x588): multiple definition of `HEMISPHERE_MAX'
o/const.o:(.rodata+0x10): first defined here
o/update.o:(.rodata+0x58c): multiple definition of `CLIMATE_RAINFOREST'
o/const.o:(.rodata+0x14): first defined here
o/update.o:(.rodata+0x590): multiple definition of `CLIMATE_SAVANNA'
o/const.o:(.rodata+0x18): first defined here
o/update.o:(.rodata+0x594): multiple definition of `CLIMATE_DESERT'
o/const.o:(.rodata+0x1c): first defined here
o/update.o:(.rodata+0x598): multiple definition of `CLIMATE_STEPPE'
o/const.o:(.rodata+0x20): first defined here
o/update.o:(.rodata+0x59c): multiple definition of `CLIMATE_CHAPPARAL'
o/const.o:(.rodata+0x24): first defined here
o/update.o:(.rodata+0x5a0): multiple definition of `CLIMATE_GRASSLANDS'
o/const.o:(.rodata+0x28): first defined here
o/update.o:(.rodata+0x5a4): multiple definition of `CLIMATE_DECIDUOUS'
o/const.o:(.rodata+0x2c): first defined here
o/update.o:(.rodata+0x5a8): multiple definition of `CLIMATE_TAIGA'
o/const.o:(.rodata+0x30): first defined here
o/update.o:(.rodata+0x5ac): multiple definition of `CLIMATE_TUNDRA'
o/const.o:(.rodata+0x34): first defined here
o/update.o:(.rodata+0x5b0): multiple definition of `CLIMATE_ALPINE'
o/const.o:(.rodata+0x38): first defined here
o/update.o:(.rodata+0x5b4): multiple definition of `CLIMATE_ARCTIC'
o/const.o:(.rodata+0x3c): first defined here
o/update.o:(.rodata+0x5b8): multiple definition of `MAX_CLIMATE'
o/const.o:(.rodata+0x40): first defined here
o/weather.o:(.rodata+0x198): multiple definition of `WEATHER_SIZE_X'
o/const.o:(.rodata+0x0): first defined here
o/weather.o:(.rodata+0x19c): multiple definition of `WEATHER_SIZE_Y'
o/const.o:(.rodata+0x4): first defined here
o/weather.o:(.rodata+0x1a0): multiple definition of `HEMISPHERE_NORTH'
o/const.o:(.rodata+0x8): first defined here
o/weather.o:(.rodata+0x1a4): multiple definition of `HEMISPHERE_SOUTH'
o/const.o:(.rodata+0xc): first defined here
o/weather.o:(.rodata+0x1a8): multiple definition of `HEMISPHERE_MAX'
o/const.o:(.rodata+0x10): first defined here
o/weather.o:(.rodata+0x1ac): multiple definition of `CLIMATE_RAINFOREST'
o/const.o:(.rodata+0x14): first defined here
o/weather.o:(.rodata+0x1b0): multiple definition of `CLIMATE_SAVANNA'
o/const.o:(.rodata+0x18): first defined here
o/weather.o:(.rodata+0x1b4): multiple definition of `CLIMATE_DESERT'
o/const.o:(.rodata+0x1c): first defined here
o/weather.o:(.rodata+0x1b8): multiple definition of `CLIMATE_STEPPE'
o/const.o:(.rodata+0x20): first defined here
o/weather.o:(.rodata+0x1bc): multiple definition of `CLIMATE_CHAPPARAL'
o/const.o:(.rodata+0x24): first defined here
o/weather.o:(.rodata+0x1c0): multiple definition of `CLIMATE_GRASSLANDS'
o/const.o:(.rodata+0x28): first defined here
o/weather.o:(.rodata+0x1c4): multiple definition of `CLIMATE_DECIDUOUS'
o/const.o:(.rodata+0x2c): first defined here
o/weather.o:(.rodata+0x1c8): multiple definition of `CLIMATE_TAIGA'
o/const.o:(.rodata+0x30): first defined here
o/weather.o:(.rodata+0x1cc): multiple definition of `CLIMATE_TUNDRA'
o/const.o:(.rodata+0x34): first defined here
o/weather.o:(.rodata+0x1d0): multiple definition of `CLIMATE_ALPINE'
o/const.o:(.rodata+0x38): first defined here
o/weather.o:(.rodata+0x1d4): multiple definition of `CLIMATE_ARCTIC'
o/const.o:(.rodata+0x3c): first defined here
o/weather.o:(.rodata+0x1d8): multiple definition of `MAX_CLIMATE'
o/const.o:(.rodata+0x40): first defined here
o/weather.o: In function `EnforceClimateConditions':
weather.c:(.text+0x4c): undefined reference to `weatherMap'
weather.c:(.text+0x53): undefined reference to `weatherDelta'
weather.c:(.text+0x59): undefined reference to `weatherMap'
o/weather.o: In function `getWeatherCell':
weather.c:(.text+0xac4): undefined reference to `weatherMap'
o/weather.o: In function `ApplyDeltaChanges':
weather.c:(.text+0x244d): undefined reference to `weatherMap'
weather.c:(.text+0x2459): undefined reference to `weatherDelta'
o/weather.o: In function `fread_cell':
weather.c:(.text+0x31e3): undefined reference to `weatherMap'
o/weather.o: In function `save_weathermap':
weather.c:(.text+0x34c5): undefined reference to `weatherMap'
o/weather.o: In function `RandomizeCells':
weather.c:(.text+0x3612): undefined reference to `weatherMap'
weather.c:(.text+0x3630): undefined reference to `weatherMap'
o/weather.o: In function `InitializeWeatherMap':
weather.c:(.text+0x6d03): undefined reference to `weatherMap'
o/weather.o:weather.c:(.text+0x6dd6): more undefined references to `weatherMap' follow
o/weather.o: In function `CalculateCellToCellChanges':
weather.c:(.text+0x70fe): undefined reference to `weatherDelta'
weather.c:(.text+0x7223): undefined reference to `weatherMap'
weather.c:(.text+0x7234): undefined reference to `weatherDelta'
o/weather.o: In function `ClearWeatherDeltas':
weather.c:(.text+0x7263): undefined reference to `weatherDelta'
o/weather.o: In function `do_setweather':
weather.c:(.text+0x73fe): undefined reference to `weatherMap'
o/weather.o: In function `do_showweather':
weather.c:(.text+0x75c1): undefined reference to `weatherMap'
weather.c:(.text+0x75f6): undefined reference to `weatherMap'
collect2: ld returned 1 exit status
       
Post is unread #12 Jan 27, 2008, 3:58 am
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

It's mindboggling it looks like it says I haven't included weather.h but I do in weather.c const.c and update.c instead of mud.h

       
Post is unread #13 Jan 27, 2008, 4:00 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Those are all linker errors; they mean you are defining things several times, not that you haven't included a .h file. Chances are that you copy/pasted the wrong code in several .c files.
       
Post is unread #14 Jan 27, 2008, 7:22 am   Last edited Jan 27, 2008, 7:26 am by Kayle
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Well, You're going to want to go back through and double check the changes you made. The const.c changes however, appear to be something I missed in the installation instruction, all those weather arrays at the bottom of const.c need removed, I'll be updating the snippet instructions in just a few minutes, and hopefully the rest of this will get ironed out before I go to upload the updated version so that any other problems that could have stemmed from the instructions can be fixed. Another thing I noticed is the timedata saving and loading in pfiles.c. if you delete or coment out the one in pfiles.c and uncomment the lines in calendar.c that talk about the pfile snippet, you should be able to at least take care of that one.

Other than that, the rest of those linker errors are telling you you have multiple definitions of things for the weather code, which is incorrect, there should be no definitions outside of weather.c or weather.h the rest are all calls to functions already defined in those functions.

EDIT: Another note, I hadn't seen the part where you said
Llarn said:

It's mindboggling it looks like it says I haven't included weather.h but I do in weather.c const.c and update.c instead of mud.h

This is where your multiple definitions are coming in, const.c shouldn't have anything weather related in it. And you're going to need to define weather.h in mud.h because far too many files utilize functions from that system.
       
Post is unread #15 Jan 27, 2008, 4:04 pm
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Weird that smaugfuss1.9 has those weather functions still in const.c

       
Post is unread #16 Jan 27, 2008, 4:32 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

As I said, it was a mistake on my part in the instructions, but since those arrays are still in place in the Distro, it leads me to believe that you copied/pasted something wrong, misread part of the instructions, or something was missed in the instructions that was caught when the system was installed in FUSS 1.9, If you could please give everything a review and double check all your work, it would be much appreciated, and would also help me with fixing the instructions (which have been fixed and are pending the resolution of this thread to be uploaded in case there are any additional problems).
       
Post is unread #17 Jan 27, 2008, 6:16 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Including weather.h directly from the .c files instead of mud.h probably isn't responsible for these problems, unless weather.h is defining symbols instead of just declaring them. Even then, it shouldn't matter because as soon as you put something into mud.h it gets included many times indirectly anyhow.
       
Post is unread #18 Jan 27, 2008, 7:14 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

It probably shouldn't affect it, but obviously, something somewhere is horribly amiss. And it could also be that somethings in the weather might not be completely compatible with legacy copies of Smaug kept loosely up to date with the FUSS releases. I don't know. It's gone perfectly into 3 copies of Smaug for me, and one for Samson; even Scoyn added it to one (and he can't code).

So I guess it comes down to two or three possibilities. It could be that a compiler other than g++ doesn't like some of the things in the system. It could also be that legacy copies of Smaug are missing something that FUSS has. Could also be that there was a step skipped, or one that was double pasted, with the second paste in the wrong place. I don't know.
       
Post is unread #19 Jan 27, 2008, 8:02 pm
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

It looks like it has to do with the compiler :(

I was using

gcc

you guys use

g++

Using gcc in the makefile for some reason the compiler hates weather.h and tries to say it has multiple references even when it is only in mud.h
       
Post is unread #20 Jan 27, 2008, 8:23 pm
Go to the top of the page
Go to the bottom of the page

Llarn
Apprentice
GroupMembers
Posts63
JoinedNov 25, 2007

Hrm tried changing my compiler to

CC = gcc -lstdc++

Wasn't that pretty, heh. Maybe something else will work.

       
Pages:<< prev 1, 2, 3 next >>