2010/3/19 <[email protected]>
> soci-simple.cpp: In function ‘const
> char*<unnamed>::format_date(<unnamed>::statement_wrapper&, const tm&)’:
> soci-simple.cpp:476: error: ‘sprintf’ was not declared in this scope
> soci-simple.cpp: In function ‘bool<unnamed>::string_to_date(const char*,
> tm&, <unnamed>::statement_wrapper&)’:
> soci-simple.cpp:492: error: ‘sscanf’ was not declared in this scope
> soci-simple.cpp: In function ‘const char* soci_get_use_date(void*, const
> char*)’:
> soci-simple.cpp:1514: error: ‘sprintf’ was not declared in this scope
> child process exited abnormally
>
The sscanf() (http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/)
and sprintf() (http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/)
functions are defined within the cstdio library, so you can add the
following line in the soci-simple.cpp file:
#include <cstdio>
Alternatively, of course, you can use the latest version from the Git
repository. Normally, there should be, as well, a new 3.1.0 release (but I
guess Mateusz has not had the time to release it yet).
Denis
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users