Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Compile error when adding custom message #151

@chrinels

Description

@chrinels

When adding the below message to file opendlv/resources/odvd/ODVDOpenDLVData.odvd

message opendlv.logic.coordination.IntersectionAccessRequest [id = 303] {
  odcore::data::TimeStamp timeOfRequest [id = 1];
  string intention [id = 2];
  bool ack [id = 3];
  opendlv::data::environment::WGS84Coordinate positionAtRequest [id = 4];
}

the auto generated TestSuits fails; which gives the following compile error:

libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::toString[abi:cxx11]() const'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::~WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::operator=(opendlv::data::environment::WGS84Coordinate const&)'
libodvdopendlvdata.so: undefined reference to `geodetic::WGS84::WGS84(geodetic::WGS84 const&)'
libodvdopendlvdata.so: undefined reference to `vtable for opendlv::data::environment::WGS84Coordinate'
collect2: error: ld returned 1 exit status
CMakeFiles/opendlv_logic_coordination_IntersectionAccessRequestTestSuite.h-TestSuite.dir/build.make:101: recipe for target 'opendlv_logic_coordination_IntersectionAccessRequestTestSuite.h-TestSuite' failed
make[5]: *** [opendlv_logic_coordination_IntersectionAccessRequestTestSuite.h-TestSuite] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/opendlv_logic_coordination_IntersectionAccessRequestTestSuite.h-TestSuite.dir/all' failed
make[4]: *** [CMakeFiles/opendlv_logic_coordination_IntersectionAccessRequestTestSuite.h-TestSuite.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::toString[abi:cxx11]() const'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::~WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::operator=(opendlv::data::environment::WGS84Coordinate const&)'
libodvdopendlvdata.so: undefined reference to `geodetic::WGS84::WGS84(geodetic::WGS84 const&)'
libodvdopendlvdata.so: undefined reference to `vtable for opendlv::data::environment::WGS84Coordinate'
collect2: error: ld returned 1 exit status
CMakeFiles/opendlv_knowledge_InsightTestSuite.h-TestSuite.dir/build.make:101: recipe for target 'opendlv_knowledge_InsightTestSuite.h-TestSuite' failed
make[5]: *** [opendlv_knowledge_InsightTestSuite.h-TestSuite] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/opendlv_knowledge_InsightTestSuite.h-TestSuite.dir/all' failed
make[4]: *** [CMakeFiles/opendlv_knowledge_InsightTestSuite.h-TestSuite.dir/all] Error 2
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::toString[abi:cxx11]() const'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::~WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::operator=(opendlv::data::environment::WGS84Coordinate const&)'
libodvdopendlvdata.so: undefined reference to `geodetic::WGS84::WGS84(geodetic::WGS84 const&)'
libodvdopendlvdata.so: undefined reference to `vtable for opendlv::data::environment::WGS84Coordinate'
collect2: error: ld returned 1 exit status
CMakeFiles/opendlv_proxy_AnalogRequestTestSuite.h-TestSuite.dir/build.make:101: recipe for target 'opendlv_proxy_AnalogRequestTestSuite.h-TestSuite' failed
make[5]: *** [opendlv_proxy_AnalogRequestTestSuite.h-TestSuite] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/opendlv_proxy_AnalogRequestTestSuite.h-TestSuite.dir/all' failed
make[4]: *** [CMakeFiles/opendlv_proxy_AnalogRequestTestSuite.h-TestSuite.dir/all] Error 2
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::toString[abi:cxx11]() const'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::~WGS84Coordinate()'
libodvdopendlvdata.so: undefined reference to `opendlv::data::environment::WGS84Coordinate::operator=(opendlv::data::environment::WGS84Coordinate const&)'
libodvdopendlvdata.so: undefined reference to `geodetic::WGS84::WGS84(geodetic::WGS84 const&)'
libodvdopendlvdata.so: undefined reference to `vtable for opendlv::data::environment::WGS84Coordinate'
collect2: error: ld returned 1 exit status
CMakeFiles/opendlv_sensation_GeolocationTestSuite.h-TestSuite.dir/build.make:101: recipe for target 'opendlv_sensation_GeolocationTestSuite.h-TestSuite' failed
make[5]: *** [opendlv_sensation_GeolocationTestSuite.h-TestSuite] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/opendlv_sensation_GeolocationTestSuite.h-TestSuite.dir/all' failed
make[4]: *** [CMakeFiles/opendlv_sensation_GeolocationTestSuite.h-TestSuite.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/libodvdopendlvdata.dir/build.make:114: recipe for target 'libodvdopendlvdata-prefix/src/libodvdopendlvdata-stamp/libodvdopendlvdata-build' failed
make[2]: *** [libodvdopendlvdata-prefix/src/libodvdopendlvdata-stamp/libodvdopendlvdata-build] Error 2
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/libodvdopendlvdata.dir/all' failed
make[1]: *** [CMakeFiles/libodvdopendlvdata.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
make: *** [buildComplete] Error 2

Removing the last entry from the message
opendlv::data::environment::WGS84Coordinate positionAtRequest [id = 4];
it works.

According to @olbender It might be that the WGS84Coordinate is defined in another ODVD file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions