From: Warren Young Date: December 17 2007 9:19pm Subject: Re: Linking errors after moving to SSQLSs, macro problem List-Archive: http://lists.mysql.com/plusplus/7271 Message-Id: <4766E7EC.40701@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.