Берем libmysql++-dev, 2.0.7-3 Берем сэмпл из /usr/share/doc/libmysql++-dev/examples/custom1.cpp открываем favorite editor'м, я взял scite и пробуем кимпилировать **
make
make: *** No targets specified and no makefile found. Stop.
Exit code: 2 g++ -pedantic -Os -c custom1.cpp -o custom1.o
In file included from custom1.cpp:29: util.h:31:21: error: mysql++.h: No such file or directory custom1.cpp:32:20: error: custom.h: No such file or directory util.h:36: error: expected ',' or '...' before '::' token util.h:36: error: ISO C++ forbids declaration of 'mysqlpp' with no type util.h:37: error: expected unqualified-id before '&' token util.h:37: error: expected ',' or '...' before '&' token util.h:38: error: ISO C++ forbids declaration of 'parameter' with no type util.h:39: error: variable or field 'print_stock_rows' declared void util.h:39: error: 'mysqlpp' has not been declared util.h:39: error: 'res' was not declared in this scope util.h:40: error: variable or field 'get_stock_table' declared void util.h:40: error: 'mysqlpp' has not been declared util.h:40: error: 'query' was not declared in this scope util.h:40: error: 'mysqlpp' has not been declared util.h:40: error: 'res' was not declared in this scope util.h:40: error: initializer expression list treated as compound expression util.h:41: error: 'mysqlpp' has not been declared util.h:41: error: expected ',' or '...' before '&' token custom1.cpp:49: error: expected constructor, destructor, or type conversion before '(' token
Exit code: 1