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 ➜ SWR 2.0 compiling problem

SWR 2.0 compiling problem

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


Posted by MasterJay   (23 posts)  Bio
Date Sun 26 Sep 2004 08:11 PM (UTC)
Message
The compiling went all well, up until this part:

gcc -c -g3 -Wall fight.c
fight.c :8:21: sys/dir.h: No such file or directory
fight.c: 1048: warning: unused variable 'dampmod'
make[1]: *** [fight.o] Error 1
make[1]: Leaving directory 'cygdrive/c/SWR2/swr-2.0/src'
make: *** [all] Error 2

I'm using cygwin, and SWR2.0 which my friend sent to me (he sent the Gzip file which he downloaded from this site's forum)

Any clue what I got to change to get this to work?

Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Sun 26 Sep 2004 09:51 PM (UTC)
Message
You probably need to use something like this in place of your sys/dir.h declaration at the top of that file:
#if defined(__CYGWIN__)
#include <io.h>
#else
#include <sys/dir.h>
#endif

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
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.


11,795 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.