Date: Fri, 18 Feb 2005 00:04:19 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 524 ************************************************** Thursday 17 February 2005 Number 524 ************************************************** Subjects for today 1 Re: ocrad-0.11 : Franz Bakan" **= Email 1 ==========================** Date: Wed, 16 Feb 2005 23:19:38 +0100 (CET) From: "Franz Bakan" Subject: Re: ocrad-0.11 Hi, On Wed, 16 Feb 2005 12:25:29 +0100, Stefan.Neis at t-online.de wrote: >> [G:\src\ocrad-0.11]make >> g++ -Wall -W -O2 -Zomf -c -o main.o main.cc >> main.cc: In function `void Ocrad::internal_error(const char*)': >> main.cc:194: error: `snprintf' undeclared in namespace `std' >> make: *** [main.o] Fehler 1 > >Looking at cstdio include file, it looks like _GLIBCPP_USE_C99 >is not defined but should be... >Looks like that should come from > include\c++\3.3.5\i386-pc-os2-emx\bits\c++config.h >but I don't really know if activating that define isn't going to >create references to functions which just don't exist in Knut's port... Thanks for the answer. Adding #define _GLIBCPP_USE_C99 1 to include\c++\3.3.5\i386-pc-os2-emx\bits\c++config.h results in a working ocrad.exe :-) But what would be the right solution? Franz