From: Warren Young Date: April 27 2005 7:57am Subject: Re: Linking issues using create macro in header List-Archive: http://lists.mysql.com/plusplus/4301 Message-Id: <426F45E3.5090004@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Warren Young wrote: > I've added an ifdef guard around those definitions Alas, this isn't going to work. These definitions are within a macro, which is effectively on a single C++ line; you can't go putting an ifdef in the middle of a line. The only ways I can think of to get around this will break the API, and possibly also the ABI. So, I'm going to have to defer this fix to a major release. In the meantime, simply #include the header containing the SSQLS definition in only one place. I realize this restricts how you can use MySQL++...but realize that all of us who are using SSQLS now must be doing this already, and it doesn't seem to bother us any! :)