Page 1 of 1

Compilation on Ubuntu 9.10

Posted: Sun Nov 15, 2009 4:05 am
by joshuanekl
I received the following error when compiling on Ubuntu 9.10

Code: Select all

zm_utils.cpp:32: error: ‘vsnprintf’ was not declared in this scope
Fix was simply to include stdio.h

Code: Select all

diff -ur orig/ZoneMinder-1.24.2/src/zm_utils.cpp ZoneMinder-1.24.2/src/zm_utils.cpp
--- orig/ZoneMinder-1.24.2/src/zm_utils.cpp     2009-05-28 04:47:59.000000000 -0400
+++ ZoneMinder-1.24.2/src/zm_utils.cpp  2009-11-06 21:16:24.884248777 -0500
@@ -20,6 +20,7 @@
 //#include "zm_debug.h"
 #include "zm_utils.h"

+#include <stdio>
 #include <stdarg>

 const std::string stringtf( const char *format, ... )