On 27 July 2012 18:04, mateusz dziedzic <[email protected]> wrote:
> Hello,
>
> I'm new to SOCI and looking for some help on getting it working with
> Visual Studio 2005. I've downloaded "soci-3.1.0.zip", built it with
> CMake and got some dll's (not even sure why, I need only header and

>From Libraries usage [1]

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

[1] http://soci.sourceforge.net/doc/installation.html#usage

The "libraries" are .lib files. You should get them generated.

Please, check MSDN or search the Web (you will find e.g. [2]) about
how to configure Visual Studio
project files and specify include directories to locate headers and
how to specify additional library directories.

[2] http://www.steptools.com/support/stdev_docs/help/settings_vc10.html

> resource files?)

I don' t know what you mean as resource files.

> After building very simple example:
> [...]
> I receive LNK2019 and LNK2001 errors:
>
> 1>main.obj : error LNK2019: unresolved external symbol "public:
> __thiscall soci::session::~session(void)" (??1session@soci@@QAE@XZ)
> referenced in function _main

It looks like linker is not finding libraries or you haven't
configured VS as I explained above.

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to