Compile error with svn 2869

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Compile error with svn 2869

Post by rdmelin » Sun May 10, 2009 2:32 pm

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

newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany
Contact:

Post by newvisionantenna » Sun May 10, 2009 3:08 pm

Compiled and installed here with just an ffmpeg problem. I'm sure you will get it.
Last edited by newvisionantenna on Wed May 13, 2009 2:59 pm, edited 1 time in total.

newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany
Contact:

Post by newvisionantenna » Sun May 10, 2009 5:22 pm

Any word on new features in this build?
Last edited by newvisionantenna on Wed May 13, 2009 3:00 pm, edited 1 time in total.

User avatar
zoneminder
Site Admin
Posts: 5220
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder » Wed May 13, 2009 10:54 am

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?
Phil

User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin » Wed May 13, 2009 2:43 pm

Ahh. Arch just moved to gcc 4.4.0
I just need to add

Code: Select all

#include <cstdio>
and all is well.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests