I recently compiled SOCI Head in Visual Studio 2008 and fixed a few issues I
noticed along the way.
1. Visual Studio 2008 doesn't have stdint.h, but I downloaded pstdint.h and
renamed it and have had no issues. Can we include that in the distribution?
2. soci-platform.h redefines vsnprintf which confuses VS2008 terribly, so I
changed the lines to:
// Define if you have the vsnprintf variants.
#if _MSC_VER < 1500
# define HAVE_VSNPRINTF 1
# define vsnprintf _vsnprintf
#endif
3. Also, since I am not a boost user I noticed many problems with the tests.
In common-tests.h I added some #ifdefs in test26, test28, test30 and around
the boost includes at the top. I also had to explicitly #undef
SOCI_USE_BOOST in soci.h, but I imagine that could have been done more
gracefully in soci.vsprops.
4. This one is kind of obvious, but there are no build files for VS2008 yet.
I would be happy to provide patches and build scripts for any/all the
changes I have made to get it up in VS2008.
For more info check
http://jameswynn.com/2009/10/accessing-sqlite-databases-in-c-using-soci/
Thanks for the great library,
-James
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users