Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Error when compiling code on andLinux
Error when compiling code on andLinux
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Thu 07 Aug 2008 08:19 AM (UTC) |
Message
| This code previously compiled on Cygwin, any idea why this is bleeding errors now?
make -s smaug
Compiling o/act_comm.o....
In file included from mud.h:389,
from act_comm.c:22:
weather.h:66: error: variably modified 'weatherMap' at file scope
weather.h:66: error: array type has incomplete element type
weather.h:67: error: variably modified 'weatherDelta' at file scope
weather.h:67: error: array type has incomplete element type
In file included from act_comm.c:22:
mud.h:4484: error: conflicting types for 'smash_tilde'
mud.h:4483: error: previous declaration of 'smash_tilde' was here
mud.h:4789: error: conflicting types for 'interpret'
mud.h:4788: error: previous declaration of 'interpret' was here
mud.h:4793: error: conflicting types for 'one_argument'
mud.h:4792: error: previous declaration of 'one_argument' was here
cc1: warnings being treated as errors
act_comm.c: In function 'translate':
act_comm.c:135: warning: passing argument 3 of 'strncpy' as unsigned due to prototype
act_comm.c: In function 'talk_channel':
act_comm.c:412: warning: passing argument 1 of 'set_char_color' with different width due to prototype
act_comm.c:417: warning: passing argument 1 of 'set_char_color' with different width due to prototype
act_comm.c:422: warning: passing argument 1 of 'set_char_color' with different width due to prototype
act_comm.c:427: warning: passing argument 1 of 'set_char_color' with different width due to prototype
act_comm.c:436: warning: passing argument 1 of 'act' with different width due to prototype
act_comm.c:559: warning: passing argument 1 of 'act' with different width due to prototype
act_comm.c:561: warning: passing argument 1 of 'act' with
<repeat about 1000 times>
make[1]: *** [o/act_comm.o] Error 1
make: *** [all] Error 2
|
I can haz Smaug? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Thu 07 Aug 2008 03:50 PM (UTC) |
Message
| Are you using gcc or g++; and which version are you using? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Reply #2 on Thu 07 Aug 2008 07:04 PM (UTC) Amended on Thu 07 Aug 2008 07:06 PM (UTC) by Dbaker84
|
Message
| I was using gcc, 4.1.3.
<<deleted post about my knuckleheadedness>>
g++ SEEMS to have worked, let me check it out...good call on that. |
I can haz Smaug? | Top |
|
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Reply #3 on Thu 07 Aug 2008 07:10 PM (UTC) |
Message
| Nope, EXACT same problem as before (can't find function in symbol table). At this point, I honestly have NO idea what to do about this. I suppose I can zip up the entire src if anyone wants to take a look. |
I can haz Smaug? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #4 on Thu 07 Aug 2008 07:10 PM (UTC) |
Message
| Depending on what mode it's being compiling with, C doesn't support having different prototypes for the same function name. That is why you were getting errors for functions redeclarations one line after the first declaration; that's how I guessed that you were using gcc instead of g++. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Thu 07 Aug 2008 08:42 PM (UTC) |
Message
| Normally you just have -ldl as a linker flag; doesn't that make those go away? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #6 on Thu 07 Aug 2008 08:44 PM (UTC) |
Message
| Looks like this is a crossposted question of:
http://www.smaugmuds.org/index.php?a=topic&t=3772 |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Reply #7 on Thu 07 Aug 2008 08:54 PM (UTC) |
Message
| -ldl makes it go away, but then it can't find the function in the symbol table which I was under the impression was a linking issue. |
I can haz Smaug? | Top |
|
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Reply #8 on Thu 07 Aug 2008 08:54 PM (UTC) Amended on Thu 07 Aug 2008 08:55 PM (UTC) by Dbaker84
|
Message
| Correction to my above post.
It compiles fine with the -ldl flag, but the symbol still isn't found. |
I can haz Smaug? | Top |
|
Posted by
| Dbaker84
(26 posts) Bio
|
Date
| Reply #9 on Thu 07 Aug 2008 09:14 PM (UTC) |
Message
| Okay, problem solved.
I stripped out the snippet, and reinstalled it clean. When I did the cedit, I did
cedit sayto create
cedit sayto code do_sayto
For some reason, that worked. I'm not sure if I fubar'd something in the naming of the functions or what, but it works.
Thanks again everyone for all your continued help. |
I can haz Smaug? | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
23,910 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top