From: Warren Young Date: October 12 2007 6:27am Subject: Re: linking problems with SSQLS List-Archive: http://lists.mysql.com/plusplus/7094 Message-Id: <470F13E2.10402@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit joh3@stripped wrote: > > /tmp/ccS0Mujl.o: In function `File_Types::table()': > /export/sda4/svn/PS_code/src/table_construct.h:42: undefined reference to > `File_Types::_table' I suspect you're defining MYSQLPP_SSQLS_NO_STATICS in all modules. You want to define it in all but one module. It doesn't greatly matter which module leaves this undefined; each SSQLS has data members that must be defined somewhere, once, in the set of modules being linked. This macro suppresses those definitions so you don't get multiple definition problems when defining SSQLSes in header files.