>db.o: In function `save_char_file_u': >/util/circle30bpl21/src/db.c:3036: undefined reference to `find_name' --snip--- it doesnt recognize the phrase find_name ---snip--- >int find_name(char *name); >void save_char_file_u(struct char_file_u st) >{ >int player_i; > >if((player_i=find_name(st.name)) >=0 ) > { >fseek(player_fl, player_i * sizeof(struct char_file_u), SEEK_SET); >fwrite(&st, sizeof(struct char_file_u), 1, player_fl); >} >} ---snip---- try changing it to this: void save_char_file_u(struct char_file_u st) { int player_i; int find_name(char *name); if((player_i=find_name(st.name)) >=0 ) { fseek(player_fl, player_i * sizeof(struct char_file_u), SEEK_SET); fwrite(&st, sizeof(struct char_file_u), 1, player_fl); } } -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/26/03 PDT