You need to add the reference to the libpqxx
library to the project.
Inside Code::blocks, when the project is open, locate Project
in the menus, then follow Build options
, then open the tab called Linker settings
, then hit Add
, then enter pqxx
.
If you were using the libpq
C library instead, the procedure would be identical except the name would be pq
.