20 messages in com.mysql.lists.plusplusRe: Linking errors after moving to SS...
FromSent OnAttachments
Simon Pickles12 Dec 2007 14:16 
William F. Dowling12 Dec 2007 14:26 
Warren Young12 Dec 2007 14:34 
Simon Pickles16 Dec 2007 14:22 
Warren Young17 Dec 2007 05:56 
Simon Pickles17 Dec 2007 11:59 
Warren Young17 Dec 2007 13:19 
Simon Pickles17 Dec 2007 14:11 
Joel Fielder17 Dec 2007 14:36 
Drew M.17 Dec 2007 15:26 
Simon Pickles18 Dec 2007 00:07 
Warren Young18 Dec 2007 10:15 
Warren Young18 Dec 2007 10:19 
Warren Young18 Dec 2007 10:25 
Simon Pickles18 Dec 2007 12:42 
Warren Young18 Dec 2007 13:47 
Jim19 Dec 2007 03:50 
Warren Young19 Dec 2007 08:45 
Jim20 Dec 2007 03:50 
Warren Young20 Dec 2007 18:16 
Subject:Re: Linking errors after moving to SSQLSs, macro problem
From:Warren Young (mysq@etr-usa.com)
Date:12/17/2007 01:19:17 PM
List:com.mysql.lists.plusplus

Simon Pickles wrote:

I think ClassWithSSQLS.h is the 'owner'.

This is the source of your confusion. The "owner" is always a .cpp file. .h files declare things, .cpp files define them. At issue is the *definition* of the static data members of your SSQLS, so it's a matter for a .cpp file.

Note, I've also tried the same file structure but making the ClassWithSSQLS.cpp the owner, then using NO_STRUCTS on main.cpp and ClassWithSSQLS.h

MYSQLPP_SSQLS_NO_STATICS doesn't go in the .h file either, unless you guard it like in the second example in my excerpt from the new manual. If you're taking the first, simpler path, it only goes in .cpp files above the #include for all but one module.