Note that there are some explanatory texts on larger screens.

plurals
  1. POproblem using boost in c++ app
    primarykey
    data
    text
    <p>Once I added the following include to my app:</p> <pre><code>#include &lt;boost/regex.hpp&gt; </code></pre> <p>It spits out some errors I have no idea what they are about (newbie to c++):</p> <pre><code>In file included from /usr/include/boost/regex/regex_traits.hpp:27, from /usr/include/boost/regex/v4/regex.hpp:39, from /usr/include/boost/regex.hpp:31, from my_app.c:28: /usr/include/boost/regex/v4/regex_traits.hpp:80:1: error: macro "test" passed 2 arguments, but takes just 1 /usr/include/boost/regex/v4/regex_traits.hpp:80: error: template declaration of âchar (&amp; boost::re_detail::test)[2]â /usr/include/boost/regex/v4/regex_traits.hpp:80: error: expected unqualified-id before â...â token /usr/include/boost/regex/v4/regex_traits.hpp:80: error: expected `)' before â...â token /usr/include/boost/regex/v4/regex_traits.hpp:80: error: expected `)' before â...â token /usr/include/boost/regex/v4/regex_traits.hpp:80: error: expected unqualified-id before â(â token /usr/include/boost/regex/v4/regex_traits.hpp:80: error: âboost::re_detail::has_boost_extensions_tag&lt;T, fallback_&gt;::valueâ is not a valid template argument for type âboolâ because it is a non-constant expression </code></pre> <p>I installed boost on centos using:</p> <pre><code>yum install boost boost-devel boost-doc </code></pre> <p>I compile the app using:</p> <pre><code>g++ -o my_app my_app.c $(mysql_config --libs --cflags </code></pre> <p>Headers:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;my_global.h&gt; #include &lt;mysql.h&gt; #include &lt;string.h&gt; #include &lt;stdlib.h&gt; #include &lt;cstdio&gt; #include &lt;cstring&gt; #include &lt;cstdlib&gt; #include &lt;ctime&gt; #include &lt;dirent.h&gt; #include &lt;regex.h&gt; #include &lt;iterator&gt; #include &lt;boost/regex.hpp&gt; #include &lt;sstream&gt; #include &lt;fstream&gt; #include &lt;iostream&gt; #include &lt;vector&gt; </code></pre> <p>Can someone help me out?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload