Hi,
I have downloaded soci-3.0.0 from sourceforge.net
unzip soci-3.0.0.zip
cd soci-3.0.0/
./configure
make
and I got the following error message
g++ -c soci-simple.cpp -Wall -pedantic -Wno-long-long -O2
The last command did not execute properly:
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
Please contact the SOCI team.
uname -a
Linux mayank 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC
2009 i686 GNU/Linux
g++ --version
g++-4.4.real (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Adding #include <cstdio> ./src/core/soci-simple.h helped me to proceed.
I thought its good to tell about the problem.
Regards,
Mayank Jain
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users