Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

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

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 17 Jun 2019 14:43:17 +0000

 

 

From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf Of Graham Bloice
Sent: den 17 juni 2019 15:14
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] Building master on Ubuntu 16.04 fails

 

 

 

On Mon, 17 Jun 2019 at 14:07, 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));

 

googling https://stackoverflow.com/questions/14261013/bind-is-not-a-member-of-std

it looks like flag -std=c++11 is needed. How to add this in CMakeList ?
Regards
Anders 

 

 

Try adding:

 

set (CMAKE_CXX_STANDARD 11)

 

at the top level.

 

 

--

Graham Bloice

 

Ok that worked, see https://code.wireshark.org/review/#/c/33636/

Regards

Anders

Attachment: smime.p7s
Description: S/MIME cryptographic signature