Skip to content

error: ‘library_version_type’ in namespace ‘boost::serialization’ does not name a type #32

@strk

Description

@strk

This is happening upon running make (after successful qmake call):

g++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DLINUX_OHT -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTC
ASE_BUILDDIR='"/home/src/openhmitester/build"' -I../src/linux/qt_linux_hmi_tester -I. -I../src/common -I/opt/boost/boost_1_60_0/include/ -I../src/hmi_tester -I../src/preloaders -I../src/datam
odel_adapters -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/
include/x86_64-linux-gnu/qt5/QtTest -I/usr/include/x86_64-linux-gnu/qt5/QtScript -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64
-linux-gnu/qt5/mkspecs/linux-g++ -o datamodel.o ../src/common/datamodel.cpp
In file included from ../src/common/datamodel.h:36,
                 from ../src/common/datamodel.cpp:24:  
/usr/include/boost/serialization/list.hpp: In function ‘void boost::serialization::load(Archive&, std::__cxx11::list<U, Allocator>&, unsigned int)’:
/usr/include/boost/serialization/list.hpp:53:33: error: ‘library_version_type’ in namespace ‘boost::serialization’ does not name a type; did you mean ‘item_version_type’?
   53 |     const boost::serialization::library_version_type library_version(
      |                                 ^~~~~~~~~~~~~~~~~~~~
      |                                 item_version_type

The libboost-serialization library version I'm using is 1.74.0, default packaged in Ubuntu-21.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions