On 1 November 2012 10:24, Mateusz Loskot <[email protected]> wrote: > On 1 November 2012 07:19, Sergei Nikulov <[email protected]> wrote: >> 2012/11/1 Alberto <[email protected]> >>> >>> Hi everyone, >>> I'm new to SOCI, after three days of tryings I finally build it using >>> CMake from command line without erros, and now I was trying to compile the >>> example code. The problem is it gives me a number of error in the main.obj >>> file. >>> Could someone tell me the procedure that I have to follow to make SOCI >>> works? >>> >>> I want to use SOCI for PostgreSQL, and I built it using BoostC++ libraries >>> (from command line). >>> I use Visual Studio 2012. >>> >>> This is the file that I'm trying to compile: http://pastebin.com/U33iCy7A >>> Those are the errors reported: http://pastebin.com/maYXpgd6 (sorry if they >>> are in italian, but I forgot to install the english langpack. >>> >>> Thanks in advance. >> >> >> Which version of CMake have you uesd? >> AFAIR, cmake will support VC2012 starting from 2.8.10 which was released >> yesterday. > > FYI and AFAIK: > > CMake has got usable support for Visual Studio 11 (former name of VS2012) > in 2.8.6/2.8,7. I've used those versions with Visual Studio 11 and it > worked well, > though reported a few bugs > http://public.kitware.com/Bug/view.php?id=12568 > and the support was not well documented > http://public.kitware.com/Bug/view.php?id=12567 > > Lately, VS2012 Express support was fixed: > http://public.kitware.com/Bug/view.php?id=13348 > > The problem is CMake uses confusing names of VS :) > http://public.kitware.com/Bug/view.php?id=10158 > In CMake 2.8.9, it still names generator for Visual Studio 2012 as > Visual Studio 11.
CMake 2.8.10 was announced yesterday [1] and the message states: - support for the latest available versions of Visual Studio (11 / 2012) So, despite of various updates and patches being applied since 2.8.6, let's assume the official VS2012 support is available since 2.8.10. I presume, for new release of SOCI, we will have to document minimum requirement of CMake :) [1] http://www.cmake.org/pipermail/cmake/2012-October/052593.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
