Page 1 of 1

Compile error with svn 2869

Posted: Sun May 10, 2009 2:32 pm
by rdmelin
zm_utils.cpp: In function ‘const std::string stringtf(const char*, ...)’:
zm_utils.cpp:31: error: ‘vsnprintf’ was not declared in this scope
zm_utils.cpp: In function ‘const std::string stringtf(const std::string&, ...)’:
zm_utils.cpp:46: error: ‘vsnprintf’ was not declared in this scope

Posted: Sun May 10, 2009 3:08 pm
by newvisionantenna
Compiled and installed here with just an ffmpeg problem. I'm sure you will get it.

Posted: Sun May 10, 2009 5:22 pm
by newvisionantenna
Any word on new features in this build?

Posted: Wed May 13, 2009 10:54 am
by zoneminder
Hmm, vsnprintf is a regular function in libc as far as I know. If I 'man' it I get it discussed along with printf etc.

Also, it has been in that file since 1.24.0 at least so I don't know why it should suddenly appear now.

Are you still getting the error?

Posted: Wed May 13, 2009 2:43 pm
by rdmelin
Ahh. Arch just moved to gcc 4.4.0
I just need to add

Code: Select all

#include <cstdio>
and all is well.