Skip to main content
stefan239955_stm1_stmicro
Associate II
November 25, 2008
Question

has snprintf(...) but linker doesn't find it

  • November 25, 2008
  • 4 replies
  • 1025 views
Posted on November 25, 2008 at 19:26

<stdio< has snprintf(...) but linker doesn't find it

    This topic has been closed for replies.

    4 replies

    stefan239955_stm1_stmicro
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:52

    In C:\Keil\ARM\RV31\INC\stdio.h I have sprintf() as well as snprintf().

    sprintf() works without any problems, while

    snprintf() is not found by the linker.

    Any suggestions where to look or what else I need to include?

    Thanks

    [ This message was edited by: stefan.klumpp on 16-11-2008 22:30 ]

    stefan239955_stm1_stmicro
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:52

    Thanks for the hint. I actually could have figured out that on my own.

    Although I didn't really help. I still get an error that snprintf is undefined.

    st3
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:52

    Quote:

    Any suggestions where to look

    Well, it's a Keil-specific question - so Keil must be the place to look; mustn't it...?!

    eg, does this help:

    http://www.keil.com/support/man/docs/armlib/armlib_cihfffbc.htm

    st3
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:52

    Are you using the microlib?

    It's not clear to me whether it should be included in the mocrolib...