Wireshark mailing list archives
Re: Building master on Ubuntu 16.04 fails
From: Graham Bloice <graham.bloice () trihedral com>
Date: Mon, 17 Jun 2019 14:13:48 +0100
On Mon, 17 Jun 2019 at 14:07, Anders Broman <anders.broman () ericsson com> 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. See also: https://cmake.org/cmake/help/v3.14/variable/CMAKE_CXX_STANDARD.html#variable:CMAKE_CXX_STANDARD -- Graham Bloice
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Building master on Ubuntu 16.04 fails Anders Broman (Jun 17)
- Re: Building master on Ubuntu 16.04 fails Sake Blok | SYN-bit (Jun 17)
- Re: Building master on Ubuntu 16.04 fails Graham Bloice (Jun 17)
- Re: Building master on Ubuntu 16.04 fails Anders Broman (Jun 17)
