Category : undefined-reference

I’m trying to build a small GUI using Qt Creator which sends HTTP requests when pushing a button. To send those requests I included an external header file ("HTTPRequests.hpp", https://github.com/elnormous/HTTPRequest). The header file is located in my project folder. I included the header file in my .pro like this: HEADERS += HTTPRequest.hpp mainwindow.h and in ..

Read more

I’ve been trying to compile my project and I’ve encountered some problems when trying so. The error in particular that appears is: [build] /usr/bin/ld: CMakeFiles/robot_control.dir/main.cpp.o:(.data.rel.ro._ZTVN4comm15cameraInterfaceE[_ZTVN4comm15cameraInterfaceE]+0x10): undefined reference to `comm::Interface<cv::Mat>::callbackMsg()’ My project is organized right now as it follows: -${HOME_WORKSPACE} |-main.cpp |-src |-communication.cpp |-communication.hpp The header file (communication.hpp) is: #include <opencv2/opencv.hpp> #include <gazebo/gazebo_client.hh> #include <gazebo/msgs/msgs.hh> #include ..

Read more

I am getting the following error while I am trying to build a project. Errors << lifelong_learning:make /home/ekin/my_ws/logs/lifelong_learning/build.make.001.log /usr/bin/ld: /home/ekin/my_ws/devel/.private/lifelong_learning/lib/liblearninglib.so.0.0.1: undefined reference to `vtable for YAML::InvalidNode’ /usr/bin/ld: /home/ekin/my_ws/devel/.private/lifelong_learning/lib/liblearninglib.so.0.0.1: undefined reference to `YAML::detail::node_data::begin()’ /usr/bin/ld: /home/ekin/my_ws/devel/.private/lifelong_learning/lib/liblearninglib.so.0.0.1: undefined reference to `YAML::LoadAllFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’ /usr/bin/ld: /home/ekin/my_ws/devel/.private/lifelong_learning/lib/liblearninglib.so.0.0.1: undefined reference to `YAML::Emitter::~Emitter()’ /usr/bin/ld: /home/ekin/my_ws/devel/.private/lifelong_learning/lib/liblearninglib.so.0.0.1: undefined reference to `typeinfo for ..

Read more