Well, I grabbed the latest Cygnus (setup.exe and installed it). Everything compiled ok (smaug1.4a). After a make clean/make smaug everything came out fine. Thanks to all for the feedback! Now, is it possible to create a smaug.exe that doesn't require the cygwin1.dll? Just curious. Thanks again.
Ah yes, well that is the better way of doing it. :)
To work without the cygwin1.dll you need to use a different compiler. The version I did with Microsoft Visual C++ didn't need the DLL, however that is not a free compiler.
May as well copy and paste the relevant macros into mud.h or the top of the source file that is causing the problems. That should fix it (the brute-force way) ...
/* Convenience macros for operations on timevals.
NOTE: `timercmp' does not work for >= or <=. */
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
#define timercmp(a, b, CMP) \
(((a)->tv_sec == (b)->tv_sec) ? \
((a)->tv_usec CMP (b)->tv_usec) : \
((a)->tv_sec CMP (b)->tv_sec))
#define timeradd(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
if ((result)->tv_usec >= 1000000) \
{ \
++(result)->tv_sec; \
(result)->tv_usec -= 1000000; \
} \
} while (0)
#define timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
Amended on Mon 23 Apr 2001 10:58 PM (UTC) by Cylent
Message
Hi,
Well, I grabbed the latest Cygnus (setup.exe and installed it). Everything compiled ok (smaug1.4a). After a make clean/make smaug everything came out fine. Thanks to all for the feedback! Now, is it possible to create a smaug.exe that doesn't require the cygwin1.dll? Just curious. Thanks again.
Thanks for the reply Nick. Everything compiles, up to interp.c then I get:
interp.c: In function `update_userec':
interp.c:1192: warning: implicit declaration of function `timerisset'
interp.c:1192: warning: implicit declaration of function `timercmp'
interp.c:1192: parse error before `<'
interp.c: At top level:
interp.c:1197: parse error before `if'
make[1]: *** [interp.o] Error 1
make: *** [all] Error 2
Attempting to compile smaug1.4a under Win98/CygnusB19 and getting many errors re: files not found (comm.c 60 -> netinit/in_systm.h). I'm assuming that perhaps this should be commented out like regex references?
Is there a full-blown detailed list of what should be modified/deleted for successful compiling? It was by chance I read about the regex references. TIA!
if you have the newest version of cygwin(and by that i mean you downloaded the setup.exe) then you have the crypt.h file. all you need to do is add #include <crypt.h> to the top of those files that gave you errors, with the other includes. then in your makefile add -lcrypt to the line that says this, $(CC) $(L_FLAGS) $(USE_IMC) -g -o smaug.exe $(O_FILES) -lcrypt. now you have encrypted passwords.
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.