Re: [CinePaint] Glasgow 0.1 in CVS
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.cinepaint.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 21 Dec 2006, Nathan Fisher wrote: > Robin, > > The results of trying to build on Linux (Fedora Core 6): > /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c > ++/4.1.1/i386-redhat-linux/bits/c++locale.h:86: error: 'snprintf' is not > a member of 'std' > > I've done a bit of searching and can't readily find a clean solution, > any ideas? This looks like an easy fix. The snprintf() function is likely not part of the official 'std' namespace. Only official ANSI C functions are imported into std. Often it is necessary to include <stdio.h> as <cstdio> in order to ensure that standard functions are included in the std namespace. Just change std::snprintf() to ::snprintf() and be happy. Bob ====================================== Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV