Menu

#2 implicit declaration of function `int sprintf(...)

open
che
None
5
2006-02-24
2006-02-24
Anonymous
No

chat.cpp: In method `struct return_command *
chat_module::post_message(t_message *)':
chat.cpp:319: implicit declaration of function `int
sscanf(...)'
chat.cpp: In method `void t_action::regex_substitute
(basic_string<char,string_char_traits<char>,__default_a
lloc_template<true,0> >, regmatch_t *, string *)':
chat.cpp:585: implicit declaration of function `int
sprintf(...)'
make[3]: *** [chat.o] Error 1

also

dctc_comm.cpp: In method `int t_dctc_comm::start(char
**, t_module_wrapper_list **,
basic_string<char,string_char_traits<char>,__default_al
loc_template<true,0> >)':
dctc_comm.cpp:60: `errno' undeclared (first use this
function)
dctc_comm.cpp:60: (Each undeclared identifier is
reported only once
dctc_comm.cpp:60: for each function it appears in.)
make[2]: *** [dctc_comm.o] Error 1

gcc --version == 2.95.3
GNU Make version == 3.79.1
glib-config --version == 1.2.10
Autoconf version 2.13
automake (GNU automake) 1.4

Discussion

  • Nobody/Anonymous

     
  • che

    che - 2006-02-24
    • assigned_to: nobody --> che0
     
  • che

    che - 2006-02-24

    Logged In: YES
    user_id=870164

    Hi, thanks for reporting the bug. This is probably caused by
    omitted headers (I wonder how it could have worked for me in
    time I wrote that). I have commited the fix to the CVS HEAD.
    However, I recall there were some problems with that
    version. If you'd be willing to test it, see if it works for
    you and prod me enough in case it won't, I'd should be able
    to find time to fix it.

     
  • Nobody/Anonymous

    Logged In: NO

    Works just fine. Thank you very much.

     

Log in to post a comment.

MongoDB Logo MongoDB