MySQL Connector C++ on Ubuntu 10.04 LTS

I’ve trying to use MySQL Connector C++ for my project, here the example code (retrieved from official site):

mysqlconn.cpp:

To identify which argument for linker is quite easy:

However, when I try to compile it, error happened (missing boost library)

Quick fix:

Now run the sample code:

Date
Categories
Tags
Permalink
Status

Published:March 6, 2012

database

Bookmark the permalink

Post a comment or leave a trackback: Trackback URL


Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*
*