Setting up Mysql++ in linux

前端 未结 2 441
不思量自难忘°
不思量自难忘° 2021-02-09 20:24

I want to connect to a mysql database with C++ in linux. On my local machine I am running Ubuntu, and installed the mysql server and client packages:

sud

2条回答
  •  悲哀的现实
    2021-02-09 20:53

    You need to install the header (dev) files, I assume one of these:

    apt-cache search mysql
    ...
    libmysqlclient-dev - MySQL database development files
    libmysqlclient16 - MySQL database client library
    libmysql++-dev - MySQL C++ library bindings (development)
    libmysqlcppconn-dev - MySQL Connector for C++ (development files)
    ...
    

    --with-mysql-lib should not be necessary because the files will be installed in the default locations.

提交回复
热议问题