James Wynn wrote:
> 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?

This header seems to be not used for Visual C++, so should be safe to
comment out. Fixed in current master in the Git repo

By the way, in case you need stdint.h, use this:
http://code.google.com/p/msinttypes/

> 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

Thanks for the info. Fixed in the master.

> 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.

I'm sure it is possible to improve it.
However, I'm drifting away of manual maintenance of Visual Studio
projects, and heading toward CMake, then deprecated the hand-written
projects.

> 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.

I believe I have applied fixes (in Git, master) to all the issues you
identified. However, you are welcome to send patches for whatever
problem you will find.

> For more info check
> http://jameswynn.com/2009/10/accessing-sqlite-databases-in-c-using-soci/

Nice, thanks.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

------------------------------------------------------------------------------
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

Reply via email to