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

Re: problem with SSQLS in header files...

by Joe Hudson-4 :: Rate this Message:

Reply to Author | View in Thread

thanks everyone. problem sorted :)

On 18/04/07, Warren Young <mysqlpp@...> wrote:

>
> 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=joe.hudson@...
>
>


--
LIVE MUSIC + OTHER PERFORMANCE ART CHARITY FUNDRAISER
Doors 6.30pm - 1st act 7:30pm,  2nd SUNDAY of EVERY month
@ THE TALKING HEADS, PORTSWOOD Rd, SOUTHAMPTON
£4 entrance: all profits to 3 Local Charities. inc:
SCRATCH and HAMPSHIRE AUTISTIC SOCIETY
-----------------------------------------------------------------------------------------------

Apr 8th, May 13th...

Contact joe.hudson@... for more info.
-------------------------------------------------------
---------------------------------------
Visit http://www.myspace.com/littlecog  for latest details, to post new
events or volunteer for future community action events.

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