From: Kemin Zhou Date: January 30 2011 12:49am Subject: Re: Not enough parameters to fill the template List-Archive: http://lists.mysql.com/plusplus/9207 Message-Id: <4D44B59D.1070001@lbl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Tom, Thanks for the reply. I got this resolved. I though 3.0.9 does not have this problem and 3.0.10 does. The summary is: with 3.0.9 I got "Not enough parameters to fill the template" exception at the parse() function. This can be resolved by adding an output operator before the parse() function. For 3.0.10 I don't see this exception. Thanks. Tomalak Geret'kal wrote: > On 30/01/2011 00:12, Kemin Zhou wrote: >> Hi All, >> I saw that back in August, people are discussing this problem. >> Not enough parameters to fill the template >> >> I have the following tow lines of code that gave me the >> above error message. >> >> 75 query << "insert into " << badtab << " values(%0, %1q)"; >> 76 query.parse(); >> >> Ovidiu suggested the following solution: >> >> The solution is to add "-fsigned-char" to CFLAGS when >> compiling mysql++ on Linux/PPC. >> >> I am using linux. >> >> Is this still the only solution? >> > > Not enough code context to answer this question > > Try adding -fsome-context to your email writing program. > > Tom > -- Kemin Zhou, Ph.D. 925 262-3970 Mobile 925 296-5843 Work http://www.jgi.doe.gov/