Compile error with svn 2869

Forum for questions and support relating to the 1.24.x releases only.
Locked
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 »

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

Post by newvisionantenna »

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

Post by newvisionantenna »

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: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post 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.
Locked