Why simple mysql++ code compiles standalone, but not in project?

后端 未结 2 997
不思量自难忘°
不思量自难忘° 2020-12-22 06:01

At first, small program:

#include 
using namespace mysqlpp;

void mainuu ()
{ Connection conn(\"mysql\", \"localhost\", \"root\", \"pwd\");}         


        
2条回答
  •  無奈伤痛
    2020-12-22 06:55

    Looks like you need to edit CodeLite project settings and add these settings -lmysqlclient -lmysqlpp that you pass in command line. Fill Library Path and Libraries fields on Linker tab.

提交回复
热议问题