I was converting the alias code found at alsherok by Samson for my SWR codebase, and after I installed I got these errors:
mud.h:3481: parse error before `*'
mud.h:3481: warning: type defaults to `int' in declaration of `fpReserve'
mud.h:3481: warning: data definition has no type or storage class
mud.h:3482: parse error before `*'
mud.h:3482: warning: type defaults to `int' in declaration of `fpLOG'
mud.h:3482: warning: data definition has no type or storage class
mud.h:4494: parse error before `*'
mud.h:4495: parse error before `*'
mud.h:4496: parse error before `*'
mud.h:4497: parse error before `*'
mud.h:4498: parse error before `*'
mud.h:4499: parse error before `*'
mud.h:4500: parse error before `*'
mud.h:4837: parse error before `FILE'
mud.h:4839: parse error before `FILE'
alias.c: In function `do_alias':
alias.c:99: warning: implicit declaration of function `perror'
alias.c:99: warning: implicit declaration of function `fprintf'
alias.c:99: `stderr' undeclared (first use in this function)
alias.c:99: (Each undeclared identifier is reported only once
alias.c:99: for each function it appears in.)
alias.c: In function `check_alias':
alias.c:143: warning: implicit declaration of function `sprintf'
Now, to what I've been looking at, it appears every error is somehow linkned to FILE in mud.h. However, I didn't mess with anything of that nature at all. Just after I installed this code did this pop up, so something must not be right since the parse errors didn't show up before. I know without the code you can't help all to much, but do you think you could point me in the right direction?
mud.h:3481: parse error before `*'
mud.h:3481: warning: type defaults to `int' in declaration of `fpReserve'
mud.h:3481: warning: data definition has no type or storage class
mud.h:3482: parse error before `*'
mud.h:3482: warning: type defaults to `int' in declaration of `fpLOG'
mud.h:3482: warning: data definition has no type or storage class
mud.h:4494: parse error before `*'
mud.h:4495: parse error before `*'
mud.h:4496: parse error before `*'
mud.h:4497: parse error before `*'
mud.h:4498: parse error before `*'
mud.h:4499: parse error before `*'
mud.h:4500: parse error before `*'
mud.h:4837: parse error before `FILE'
mud.h:4839: parse error before `FILE'
alias.c: In function `do_alias':
alias.c:99: warning: implicit declaration of function `perror'
alias.c:99: warning: implicit declaration of function `fprintf'
alias.c:99: `stderr' undeclared (first use in this function)
alias.c:99: (Each undeclared identifier is reported only once
alias.c:99: for each function it appears in.)
alias.c: In function `check_alias':
alias.c:143: warning: implicit declaration of function `sprintf'
Now, to what I've been looking at, it appears every error is somehow linkned to FILE in mud.h. However, I didn't mess with anything of that nature at all. Just after I installed this code did this pop up, so something must not be right since the parse errors didn't show up before. I know without the code you can't help all to much, but do you think you could point me in the right direction?