search

Home  >  Q&A  >  body text

c++ - codeblocks编译项目显示‘vsnprintf’未定义!

error: ‘vsnprintf’ was not declared in this scope|

ubuntu,我明明包含了#include <stdarg.h>头文件,为什么还是这么显示?

迷茫迷茫2807 days ago560

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 13:57:43

    Use the _vsnprintf function, which is a C standard library function.

    reply
    0
  • 阿神

    阿神2017-04-17 13:57:43

    I am C, I added #include <stdio.h> and it worked, I don’t understand

    reply
    0
  • Cancelreply