Register forum user name Search FAQ

Gammon Forum

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 ➜ little help please

little help please

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Exopaladin   (2 posts)  Bio
Date Tue 11 Sep 2001 12:56 PM (UTC)
Message
hi, I am trying to compile SWR with Cygwin without much success so I was wondering if anyone could help me
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 12 Sep 2001 01:27 AM (UTC)
Message
Can you tell us what is going wrong - eg. copy and paste the error messages from the compile.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Exopaladin   (2 posts)  Bio
Date Reply #2 on Wed 12 Sep 2001 10:48 AM (UTC)
Message
gcc -c -g3 -Wall save.c
save.c:28: sys/dir.h: No such file or directory

then if I // the sys/dir.h line it comes up with:

save.c: In function `load_char_obj':
save.c:913: warning: suggest explicit braces to avoid ambiguous `else'
save.c: In function `load_corpses':
save.c:2041: `DIR' undeclared (first use in this function)
save.c:2041: (Each undeclared identifier is reported only once
save.c:2041: for each function it appears in.)
save.c:2041: `dp' undeclared (first use in this function)
save.c:2041: warning: statement with no effect
save.c:2042: parse error before `struct'
save.c:2047: warning: implicit declaration of function `opendir'
save.c:2054: `falling' undeclared (first use in this function)
save.c:2055: `de' undeclared (first use in this function)
save.c:2055: warning: implicit declaration of function `readdir'
save.c:2059: `strArea' undeclared (first use in this function)
save.c:2061: `fpArea' undeclared (first use in this function)
save.c:2100: warning: implicit declaration of function `closedir'
make[1]: *** [save.o] Error 1
make[1]: Leaving directory `/cygdrive/g/dist/src'
make: *** [all] Error 2

Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 13 Sep 2001 12:28 AM (UTC)
Message
Looks like this line is not being included (near the start):



#ifndef WIN32
#include <dirent.h>
#endif


Although you are on Win32 the ifndef was only supposed to be used for the Microsoft compiler. I would comment out those two lines, like this:



// #ifndef WIN32
#include <dirent.h>
// #endif


- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


13,169 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.