I am trying to compile a console C application on HP-UX machine using the aCC compiler [HP C/aC++ B3910B A.06.26].The compilation always failing with the below error :
******"Common/Common.c", line 153: error #2020: identifier "snprintf" is undefined
snprintf( BufferMessage, MSG_SIZE,
^
1 error detected in the compilation of "Common/Common.c".
gmake: *****[Common/Common.o] Error 2********
However the Common.C file include already the library which contain normally the method snprintf. any idea to solve this isse plz? Thanks in advance for all
snprintf()
was introduced in C99, and is defined in<stdio.h>
, so your compiler must support that version of the C standard. If it does not support C99 then usesprintf()
instead.