[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-plusplus
Subject:    Re: problem with SSQLS in header files...
From:       "Joe Hudson" <joe.hudson () gmail ! com>
Date:       2007-04-18 21:24:43
Message-ID: 3f81d1da0704181424u70cda050hc9c019047a0ef10d () mail ! gmail ! com
[Download RAW message or body]


thanks everyone. problem sorted :)

On 18/04/07, Warren Young <mysqlpp@etr-usa.com> 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@gmail.com
>
>


-- 
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@gmail.com for more info.
-------------------------------------------------------
---------------------------------------
Visit http://www.myspace.com/littlecog  for latest details, to post new
events or volunteer for future community action events.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic