Okay so i try using the makefile with Cygwin for SWR, and i get this error....:
make -s swr
Compiling o/act_info.o....
act_info.c: In function `void do_password(CHAR_DATA*, char*)':
act_info.c:2551: error: `crypt' undeclared (first use this function)
act_info.c:2551: error: (Each undeclared identifier is reported only once for ea
ch function it appears in.)
make[1]: *** [o/act_info.o] Error 1
Did you make sure to enable the flags in the Makefile about crypt?
yeah....ummm...i have 3 words to say that maybe you can help me out with this, I'm a Noob
Look in the Makefile for something that mentions crypt. It should say to uncomment the line below. Do so, by removing the # at the start of the line.
Okay...Problem, the line was already err Uncommented.
Can you show us that line?
Also make sure any lines about Cygwin are uncommented.
Have you considered using SWRFUSS?
okay uncommented Cygwin lines already heres the Cygwin and Crypt lines:
#Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN
#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt
Did you make sure to do a make clean? If so, it looks like the Makefile/source isn't working as intended.
yeah i did the make clean, it gets a tad bit further but then busts out the same error as in the beggining.
wait now it's saying something about act_info.c
where can i find SWRFUSS?
You can get SWRFUSS at http://www.smaugfuss.org/
And as for the errors, (I can't remember if Cygwin has it offhand) but maybe you're missing the crypt package in Cygwin.
[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/
Amended on Tue 11 Mar 2008 03:30 AM by Nick Gammon
yeah...got swrfuss, more errors:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make[1]: *** [swreality] Error 1
make: *** [all] Error 2
There should be something in the Makefile you need to uncomment. Do a search on the forums too, you can find answers.