Evaluate a math expression in Qt
<p>I'm trying to create a Qt application and I need a math expression evaluator to evaluate things like this e.g. (4+5)*2-9/3.
I included the .hpp file of this library (<a href="http://www.partow.net/programming/exprtk/">http://www.partow.net/programming/exprtk/</a>) to my project in the Qt Creator and tried to launch the following example of code:</p>

<pre><code>#include &lt;cstdio&gt;
#include &lt;string&gt;
#include "exprtk.hpp"

int main()
{
   typedef exprtk::expression&lt;double&gt; expression_t;
   typedef exprtk::parser&lt;double&gt;         parser_t;

   std::string expression_string = "3 + sqrt(5) + pow(3,2) + log(5)";

   expression_t expression;

   parser_t parser;

   if (parser.compile(expression_string,expression))
   {
     double result = expression.value();

     printf("Result: %19.15\n",result);
   }
   else
     printf("Error in expression\n.");

   return 0;
}
</code></pre>

<p>When I try to compile and run it I get the following output:</p>

<pre><code> debug\main.o:-1: error: too many sections (62303)
</code></pre>

<p>What could be the problem?</p>