1 Replies - 1013 Views - Last Post: 01 November 2015 - 10:57 AM Rate Topic: -----

#1 tjnapster555   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 31-October 15

how to setup soci library in visual studio 2015 community?

Posted 01 November 2015 - 09:32 AM

Hello guys i need your help for configure the SOCI(The C++ Database Access Library) in visual studio

i want to know how to use it and if someone can make a visual studio project and connect it to obdc driver that would be very helpful.

i want to use it to connect to sql server 2014 using odbc.
My teacher gave us a project and i need to make it using window console application.
i try to set it up but it give me this wired error
it looks like a linking problem thats why i need your help coz i dont know how to link in visual studio



#include "stdafx.h"
#include <iostream>
#include "core\soci.h"
#include "backends\odbc\soci-odbc.h"
using namespace soci;
using namespace std;
int main()
{
	session sql(odbc, "userdsn=my.dsn");
    return 0;
}




Quote

LNK2001 unresolved external symbol "public: __thiscall soci::session::session(class soci::backend_factory const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@ABV?$[email protected]?$[email protected]@[email protected]@V?$[email protected]@[email protected]@[email protected]@@Z) ConsoleApplication12 c:\Users\[usename]\Documents\Visual Studio 2015\Projects\ConsoleApplication12\ConsoleApplication12\ConsoleApplication12.obj 1


Is This A Good Question/Topic? 0
  • +

Replies To: how to setup soci library in visual studio 2015 community?

#2 Salem_c   User is online

  • void main'ers are DOOMED
  • member icon

Reputation: 2184
  • View blog
  • Posts: 4,247
  • Joined: 30-May 10

Re: how to setup soci library in visual studio 2015 community?

Posted 01 November 2015 - 10:57 AM

https://www.google.c...atabase+linking
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1