You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing header
When compiling src/libs/utils/CMakeFiles/lmsutils.dir/impl/ChildProcess.cpp.o, it appears that the header file <optional> was missing. Adding the header to ChileProcess.hpp resolve the problem.
Object redefinition
Following errors appeared while compiling:
Consolidate compiler generated dependencies of target lmsutils
[ 0%] Building CXX object src/libs/utils/CMakeFiles/lmsutils.dir/impl/NetAddress.cpp.o
In file included from /home/jerry/public_html/lms/src/libs/utils/impl/NetAddress.cpp:20:
/home/jerry/public_html/lms/src/libs/utils/include/utils/NetAddress.hpp:26:27: error: redefinition of ‘struct std::hash<boost::asio::ip::address>’
26 | template<> struct hash<boost::asio::ip::address>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/jerry/public_html/lms/src/libs/utils/include/utils/NetAddress.hpp:22,
from /home/jerry/public_html/lms/src/libs/utils/impl/NetAddress.cpp:20:
/usr/include/boost/asio/ip/address.hpp:271:8: note: previous definition of ‘struct std::hash<boost::asio::ip::address>’
271 | struct hash<boost::asio::ip::address>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jerry/public_html/lms/src/libs/utils/impl/NetAddress.cpp:24:21: error: redefinition of ‘std::size_t std::hash<boost::asio::ip::address>::operator()(const boost::asio::ip::address&) const’
24 | std::size_t hash<boost::asio::ip::address>::operator()(const boost::asio::ip::address& ipAddr) const
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/jerry/public_html/lms/src/libs/utils/include/utils/NetAddress.hpp:22,
from /home/jerry/public_html/lms/src/libs/utils/impl/NetAddress.cpp:20:
/usr/include/boost/asio/ip/address.hpp:273:15: note: ‘std::size_t std::hash<boost::asio::ip::address>::operator()(const boost::asio::ip::address&) const’ previously defined here
273 | std::size_t operator()(const boost::asio::ip::address& addr)
| ^~~~~~~~
make[2]: *** [src/libs/utils/CMakeFiles/lmsutils.dir/build.make:160: src/libs/utils/CMakeFiles/lmsutils.dir/impl/NetAddress.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1515: src/libs/utils/CMakeFiles/lmsutils.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Maybe conflicting to the boost package?
The text was updated successfully, but these errors were encountered:
OS: Archlinux
Missing header
When compiling
src/libs/utils/CMakeFiles/lmsutils.dir/impl/ChildProcess.cpp.o
, it appears that the header file<optional>
was missing. Adding the header toChileProcess.hpp
resolve the problem.Object redefinition
Following errors appeared while compiling:
Maybe conflicting to the
boost
package?The text was updated successfully, but these errors were encountered: