On 24 November 2012 19:39, Alberto <[email protected]> wrote:
> So, those are the outputs of my compilation. Now it seems to work, but I'm
> still getting 18 warnings from MSBuild

You can safely ignore them.

> and a warning from CMake that says it
> cannot found the boost libraries (but I have included the right directories
> and built it using .\b2, and the example boost code works, so I can't figure
> out which is the error).

The only binary library from Boost, optionally used by SOCI is the
Boost.Date_Time.

The problem may be with CMake not being able to recognise Boost from
stage folder,
I haven't had time to figure out how to work around it.
If need it desperately, you may ask for help on CMake mailing list.

On Windows, I'd suggest to download and install binaries
from http://www.boostpro.com/download/ - always work for me.

> Now the problem is: since I have created a directory in soci-3.1.0 named
> build, which paths (and something else) I have to add to the project
> properties in VS?

>From http://soci.sourceforge.net/doc/installation.html

"In order to use SOCI in your program, you need to specify your project
build configuration with paths to SOCI headers and libraries,
and specify linker to link against the libraries you want to use in
your program."

So, regardless what OS/compiler you use, there are basically three things
required to build programs using SOCI:
1. Headers location ( $(SOCIROOT)/soci/core,
$(SOCIROOT)/soci/backends, $(SOCIROOT)/soci/backends/postgresql, etc.)
2. Libraries location ( for example $(YOURSOCIBUILD)/lib/Debug)
3. Libraries files to link against (libsoci_core_3_1.lib,
libsoci_postgresql_3_1.lib, etc.)

You can copy headers and libraries to your preferred locations,
then you don't point to SOCI source dir but to your locations.

Now, how to configure VS projects or NMAKE makefiles with these things?
MSDN is your friend.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to