Currently Online

Latest Posts

Topic: Compilation errors with boost

he456
Avatar
Topic Opener
Joined: 2015-09-30, 10:17
Posts: 2
Ranking
Just found this site
Posted at: 2015-09-30, 10:32

Hello,

i tried to compile the current version (7536) and the official version 18 and got some errors with my boost library:

FAILED: /usr/bin/c++ -g -I../src -Isrc -isystem /usr/include/SDL2 -isystem /usr/include/GL -std=c++11 -fext-numeric-literals -g -DDEBUG -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-promo -Wswitch-default -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=uninitialized -Werror=return-type -MMD -MT src/wui/CMakeFiles/wui.dir/plot_area.cc.o -MF src/wui/CMakeFiles/wui.dir/plot_area.cc.o.d -o src/wui/CMakeFiles/wui.dir/plot_area.cc.o -c ../src/wui/plot_area.cc In file included from ../src/ui_basic/panel.h:29:0, from ../src/wui/plot_area.h:28, from ../src/wui/plot_area.cc:21: /usr/include/boost/signals2/trackable.hpp: In Elementfunktion »boost::weak_ptr<boost::signals2::detail::trackable_pointee> boost::signals2::trackable::get_weak_ptr() const«: /usr/include/boost/signals2/trackable.hpp:49:7: Fehler: Rückgabetyp »class boost::weak_ptr<boost::signals2::detail::trackable_pointee>« ist unvollständig { ^ In file included from /usr/include/boost/signals2/slot.hpp:22:0, from /usr/include/boost/signals2/connection.hpp:23, from /usr/include/boost/signals2/signal.hpp:21, from /usr/include/boost/signals2.hpp:19, from ../src/ui_basic/slider.h:22, from ../src/wui/plot_area.h:29, from ../src/wui/plot_area.cc:21: /usr/include/boost/signals2/detail/tracked_objects_visitor.hpp: In Elementfunktion »void boost::signals2::detail::tracked_objects_visitor::add_if_trackable(const boost::signals2::trackable*) const«: /usr/include/boost/signals2/detail/tracked_objects_visitor.hpp:85:72: Fehler: falsche Benutzung eines void-Ausdruckes slot_->_tracked_objects.push_back(trackable->get_weak_ptr());

And so on... I use Boost 1.57.0 with GCC 4.9.3 on a Gentoo system.

Any ideas would be appreciated face-smile.png

Edited: 2015-09-30, 10:35

Top Quote
QCS

Joined: 2009-12-29, 21:47
Posts: 256
Ranking
Tribe Member
Posted at: 2015-09-30, 10:56

This is a bug in boost-signals2 1.57.0.

https://svn.boost.org/trac/boost/ticket/10100

Best bet would be going back to boost 1.56.0 (please see that boost-1.57.0 is ~amd64 and ~x86 in Gentoo, so you should probably use 1.56.0 anyway).


CMake is evil.

Top Quote
he456
Avatar
Topic Opener
Joined: 2015-09-30, 10:17
Posts: 2
Ranking
Just found this site
Posted at: 2015-09-30, 12:39

Thank you very much, it is running fine now.


Top Quote