List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:April 18 2007 8:25pm
Subject:Re: problem with SSQLS in header files...
View as plain text  
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.
Thread
problem with SSQLS in header files...Joe Hudson18 Apr
  • RE: problem with SSQLS in header files...Matt Dargavel18 Apr
    • Re: problem with SSQLS in header files...Warren Young18 Apr
      • Re: problem with SSQLS in header files...Joe Hudson18 Apr
  • Re: problem with SSQLS in header files...everweb21 Jun