« Return to Thread: problem with SSQLS in header files...

Re: problem with SSQLS in header files...

by Warren Young-3 :: Rate this Message:

Reply to Author | View in Thread

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.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=lists@...

 « Return to Thread: problem with SSQLS in header files...