Matt Dargavel wrote:
>
> If you #define MYSQLPP_SSQLS_NO_STATICS before including <custom.h> then
> that stops the macros adding in instances of the static variables, and
> will solve the link problem. If you need the functionality provided by
> the static variables then include each definition once with the statics
> left enabled (i.e. miss out the #define).
Yes. You can see this technique used in the examples/util module: all
of examples/custom*.cpp use the util module, but there is no conflict
even though the util module also includes examples/stock.h.