Welcome to the Builder Academy

Question Newbie Messages Snippet

More
30 Jul 2012 21:38 - 30 Jul 2012 21:40 #485 by bakarus
Replied by bakarus on topic Re: Newbie Messages Snippet
I removed my include, as i looked down further act.h is already there, almost all errors/warnings went away, cept for the comm.c error: check_newbie reference one
Code:
/* Note, most includes for all platforms are in sysdep.h. The list of * files that is included is controlled by conf.h for that platform. */ #include "structs.h" #include "utils.h" #include "comm.h" #include "interpreter.h" #include "handler.h" #include "db.h" #include "house.h" #include "oasis.h" #include "genolc.h" #include "dg_scripts.h" #include "dg_event.h" #include "screen.h" /* to support the gemote act type command */ #include "constants.h" /* For mud versions */ #include "boards.h" #include "act.h" // <--- act.h include #include "ban.h" #include "fight.h" #include "spells.h" /* for affect_update */ #include "modify.h" #include "quest.h" #include "ibt.h" /* for free_ibt_lists */ #include "mud_event.h" #ifndef INVALID_SOCKET #define INVALID_SOCKET (-1) #endif /* EXTERNAL FUNCTIONS */ void check_auction(void); extern time_t motdmod; extern time_t newsmod;
Last edit: 30 Jul 2012 21:40 by bakarus.

Please Log in or Create an account to join the conversation.

More
30 Jul 2012 22:01 #486 by Liko
Replied by Liko on topic Re: Newbie Messages Snippet
Under the void check_auction(void)

add:
void check_newbie(void);

see if it works.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
30 Jul 2012 22:25 #487 by bakarus
Replied by bakarus on topic Re: Newbie Messages Snippet
Added the line you suggested in comm.c just under check_auction.
Code:
/* EXTERNAL FUNCTIONS */ void check_auction(void); void check_newbie(void); extern time_t motdmod; extern time_t newsmod;

Still get error: comm.c:999: undefined reference to `check_newbie'

Please Log in or Create an account to join the conversation.

More
30 Jul 2012 22:39 #488 by Liko
Replied by Liko on topic Re: Newbie Messages Snippet

bakarus wrote: Added the line you suggested in comm.c just under check_auction.

Code:
/* EXTERNAL FUNCTIONS */ void check_auction(void); void check_newbie(void); extern time_t motdmod; extern time_t newsmod;

Still get error: comm.c:999: undefined reference to `check_newbie'


copy and paste me your check_newbie from act.informative.c

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
31 Jul 2012 03:21 #489 by Vatiken
Replied by Vatiken on topic Re: Newbie Messages Snippet
I tested the snippet to see how it compiles and it compiles fine.

The problem Bakarus is having can ONLY be caused by an error in 3 lines:
1) check_newbie() in comm.c
2) void check_newbie(void) in act.h
3) void check_newbie(void) { in act.informative.c

More often then not when I get this warning it's because i hit an extra key somewhere when writing out a function name.

My guess, from the information provided, is something is being overlooked in act.informative.c

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

More
31 Jul 2012 11:02 #490 by Liko
Replied by Liko on topic Re: Newbie Messages Snippet

Vatiken wrote: I tested the snippet to see how it compiles and it compiles fine.

The problem Bakarus is having can ONLY be caused by an error in 3 lines:
1) check_newbie() in comm.c
2) void check_newbie(void) in act.h
3) void check_newbie(void) { in act.informative.c

More often then not when I get this warning it's because i hit an extra key somewhere when writing out a function name.

My guess, from the information provided, is something is being overlooked in act.informative.c


That's what I was wondering. I was wanting to see his check_newbie in act.informative.c

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds