This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

vsnprintf() giving function declared implicitly

Hello,

Im using vsnprintf() in my application code and ive included

#include <xdc/std.h>
#include <xdc/runtime/System.h> in my code.

Im using DSP SYS/BIOS 6.

On compilation , i get the warning : : function declared implicitly

Please let me know the reason for this warning and how can i remove this warning ,.

 

Thanks

Santosh

 

 

 

Press ENTER to look up in Wiktionary or CTRL+ENTER to look up in Wikipedia
  • The warning appears when a function does not have a prototype, in which case the compiler will make assumptions about the data types for function arguments and return values.

    Try including <stdio.h> to get rid of the warning.

  • Are you compiling in C++ mode?

  • I've just run into this and I guess I need a fuller answer than did the original poster.

    We're still using the v1.3.2 of the TI BLE stack so we're still running IAR 8.10.1.

    I see that the normal IAR stdio.h header file DOESN'T include definitions for snprintf() and vsnprintf(), just the "non-n" versions.

    I see that the dlib (Dinkum Library?) version of stdio.h DOES include definitions for snprintf() and vsnprintf().

    How do I use that version of the library routines (and header files)? And what other effects will that have on my program? It doesn't look like I can just switch the compilation mode from "C" to "C++"; that creates tons of diagnostic messages (many from the TI header files) and seemingly still doesn't include definitions for snprintf() and vsnprintf() because the original error is still there, just in different words.

  • Atlant Schmidt said:
    so we're still running IAR 8.10.1.

    We who watch this forum have no expertise with the IAR compiler, and are unable to help you with your question.  You are asking good questions, I just don't have any answers.  I'm not sure if they discuss the IAR compiler in the MSP430 forum, but they might.

    Thanks and regards,

    -George

  • George:

    Apologies! I didn't realize that the search that I had done to find this thread had "left" the Bluetooth/RF forum (where they definitely do use IAR).

    I'll re-post over there.

    Atlant