First off I am complete newb to all this but i am a quicklearner.I read through many, many posts and after a couple hours im now down to 1 last error that Im unsure of. Im nowhere close to a programmer so go easy on me. By the way im using Cygwin on WinXP. Ok heres whats goin on:
#ifdef REGEX
extern int re_exec _RE_ARGS ((const char *));
#endif
Also thougth you may need to see this:
Quote:
}
int is_profane (char *what)
{
#if 0
int ret;
ret = re_exec(what);
if (ret==1)
return(1);
#endif
return(0);
}
I have went through several steps to remove the list of errors was recieving and im now down to this. any other info you need please let me know.
thanx in advance for any/all help
Ya i did. In fact uncommenting "REG = -DREGEX" helped remove a lot of erros I was getting. There was also a line thta went like: #NEED_REG = -lgnuregex I tried to uncoomment, save and make but nothing changed. Is there something else in there I missed?
By the way you can check out my make file and acct.comm.c file by this:
Well the things is.. if i comment the line:
#REG = -DREGEX
I get a whole long list of errors, but i tried your suggesion and also uncommented the others and this is what i get:
you want the makefile that way, there is really just one problem that is keeping it from compiling i believe
problem is when it tries to read/write the password, compiler doesnt deal with the encrypting well. you can probly just change it so it just puts the password into the charecter file without encrypting or add a
#define NOCRYPT
in mud.h (near top) ;)
i think that would fix problems if it doesnt try adding
#define crypt(s1, s2) (s1)
k?
sweet! Plz let me know. thanx again for the research and help. Either way will work ,the encryption part i dont too much care about... i mean what does it really do that will hurt so much if its changed? sorry like i said total newb at this.
i amended top so refer to that
without encryption just means that in charecter file it will flat out show the password so admin or something can view it.. its just kinda a security thing so it will show password instead of 'sahduachashca' or some other jiberish so people with shell access will basically be able to see anyones pw
it is still that parse error in whatever is being included i think... im not sure what could have caused that if all you did was define nocrypt
btw the things like
build.c:6078: warning: suggest explicit braces to avoid ambiguous `else'
and
trigraph ??> ignored
warnings dont really affect anything u can ignore them, its the parse errors on something atm thats keeping it from compiling
not sure if you looked at it before i changed, put i pasted and saved last post before i finished making the corrections that i goofed, after fixing all i amended that last post and its now the current error. sorry i thought i had changed everything back but I had forgot one other thing.. all changed back though, I was getting some help from someone else also and there suggestion didnt work and I forgot to change everythin back. but its as you saw before and yea the only thing i changed was added #define NOCRYPT on line 26 of mud.h. if your all out of ideas i understand, between me screin things up left and right and not putting things back in order before posting i prolly have you all confused. but anyway i still than ya for the effort, by the way this is a new install so if you know where i can get a clean version of the src files that will make correctly i will gladly download it instead, heck it would prolly be easier than trying to fiigure out my screwups. thanx man
Well the things is.. if i comment the line:
#REG = -DREGEX
I get a whole long list of errors, but i tried your suggesion and also uncommented the others and this is what i get:
sorry for all the addy's I just didnt wanna spam out the forum with loads o code. thanx again for all advice here.
if you look at the end of the file it compiled all of the c/h files intot he object files.. it died on the linking.. all you have to do since your running windows is in makefile replace the word smaug in:
rm -f smaug
$(CC) $(L_FLAGS) $(USE_IMC) -o smaug $(O_FILES)
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
with smaug.exe
then i believe in mud.h you have to change a variable exe_file and in startup you have to change smaug to smaug.exe
im not sure what you did after but it seemed to work okat that point.. maybe you can backtrace your steps and get it to compile completly
Ok I give up. You can end all replies here, I just cant figure it out to save my life and dont really need it. If someone running windows has the src files & mud and it all makes perfect feel free to email it to me. traviswilson@infoave.net cya.