bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ocrad] Win32 configure Cygwin32 g++ 3.3.3 compile `snprintf' un


From: Antonio Diaz Diaz
Subject: Re: [Bug-ocrad] Win32 configure Cygwin32 g++ 3.3.3 compile `snprintf' undeclared
Date: Fri, 03 Mar 2006 21:12:11 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.12) Gecko/20050923

Chris K. Skinner wrote:
The directory in which I have un-packed the archive has a space character in 
its name/path.
Probably because of this, the configure command issued an error.

I do not like spaces in names nor shell scripting. If someone manages to fix this problem, please, send me a patch.


Then the make failed (during compile of a file using snprintf()).

Try removing the `std::' part from `std::snprintf()'. It usually works.

`snprintf()' is part of the C99 standard, will be part of the next C++ standard, and some compilers (like gcc) support it in C++ as an extension. On the other hand, using the older `sprintf()' makes the programs vulnerable to errors and attacks, so I won't use it.

Security and simplicity are more important for me than portability, specially portability to old or non-free systems.


Best regards,
Antonio Diaz.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]