ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Building master on Ubuntu 16.04 fails

From: Sake Blok | SYN-bit <sake.blok@xxxxxxxxxx>
Date: Mon, 17 Jun 2019 15:11:24 +0200
On 17 Jun 2019 (Mon), at 15:06, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

Hi,
Building a local relativly new version I get:
(dpkg-buildpackage -rfakeroot -us -uc )
 
ui/qt/simple_dialog.cpp: In member function ‘void SimpleDialog::show()’:
/ui/qt/simple_dialog.cpp:414:13: error: ‘bind’ is not a member of ‘std’
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
             ^
ui/qt/simple_dialog.cpp:414:66: error: ‘std::placeholders’ has not been declared
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
 
it looks like flag -std=c++11 is needed. How to add this in CMakeList ?

I ran into the same problem with the development setup that vagrant creates. I changed to Ubuntu 18.04 and that solved the issue. From what I have looked at, the newer GCC version in Ubuntu 18.04 solved the issue.

Also solving this in Ubuntu 16.04 would be nice though...

Cheers,
Sake