ODBC and C++

How install ODBC on Ubuntu/Mint?
How accessing to ODBC from C++ program? Libraries, headers and samples needed.
You can search for packages on Debian-like distros like this:
 
$ apt-cache search odbc


Likely you're looking for the following (assuming package name is the same on Debian and Ubuntu):
 
# apt-get install libcppdb-dev 


Although it's a two week old question so you've probably figured it out by now.
Last edited on
You will need an ANSI C compiler. For this tutorial we used gcc on Linux, but with a few small alterations the C compilers from Sun, HP, IBM etc will work just as well.

You link your application with an ODBC Driver Manager which will:

provide the C header files that allow you to compile your application.
load the driver you want to connect to.
We recommend you use the unixODBC driver manager.

You probably have the unixODBC driver manager installed if you have the odbcinst command (for ODBC drivers from Easysoft, the unixODBC driver manager is located in /usr/local/easysoft/unixODBC and the odbcinst command in the bin sub directory of that path).

Get to know more :- http://www.pickinpatchfarm.com/technology/c-language-training
Last edited on
Registered users can post here. Sign in or register to post.
  • 1007451581 2018-02-22
  • 8908121580 2018-02-22
  • 141161579 2018-02-22
  • 9421578 2018-02-22
  • 2826901577 2018-02-22
  • 3647361576 2018-02-22
  • 5717551575 2018-02-22
  • 523811574 2018-02-22
  • 6439871573 2018-02-22
  • 8109431572 2018-02-22
  • 8757321571 2018-02-22
  • 5265111570 2018-02-22
  • 3351351569 2018-02-22
  • 5109361568 2018-02-22
  • 4455391567 2018-02-22
  • 9091121566 2018-02-22
  • 24791565 2018-02-22
  • 2486841564 2018-02-21
  • 9847231563 2018-02-21
  • 9264681562 2018-02-21