Create a signal with Gtkmm
<p>I am using the gtkmm library with C++, and I am trying to create a signal which allows to change current tab, but it does not work.</p>

<p>Actually I think the problem comes from this line:</p>

<pre><code>menuit-&gt;signal_activate().connect([&amp;bo]() {bo-&gt;next_page();}); 
</code></pre>

<p>Where:</p>

<pre><code>menuit = Gtk::MenuItem
bo = Gtk::Notebook
</code></pre>

<p>The code compiles well, but when executing I get this line :</p>

<pre><code>Segmentation fault
(program exited with code: 139)
</code></pre>

<p>Thank you a lot for your help !</p>