From: Warren Young Date: April 18 2007 8:25pm Subject: Re: problem with SSQLS in header files... List-Archive: http://lists.mysql.com/plusplus/6542 Message-Id: <46267ED3.1020509@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Matt Dargavel wrote: > > If you #define MYSQLPP_SSQLS_NO_STATICS before including 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.