small_test.cpp compiles, links and successfully runs when declaration and definition along with a small test in main are all in one file. I use Geany for development on Ubuntu.
My build command in Geany looks as follows: g++ -g -Wall -std=c++14 -o "%e""%f" /SQLAPI/lib/libsqlapi.a -lboost_thread -DBOOST_THREAD_VERSION=4 -lboost_system -ldl -lpq
But when I separate them out into separate .h and .cpp files and compile/link with make, I get the following link errors: small_test.cpp:(.text+0x298): undefined reference to `boost::system::generic_category()'
Are the flags specified incorrectly ?
They match the ones I use in Geany, so I don't understand why linking error occurs.