stonier / ecl_core

A set of tools and interfaces extending the capabilities of c++ to provide a lightweight, consistent interface with a focus for control programming.
Other
84 stars 69 forks source link

compliation issue on Melodic #90

Closed jbeck28 closed 4 years ago

jbeck28 commented 4 years ago

I'm using the 0.62.2 from the repos on Ubuntu 18, and I'm getting the following error when trying to compile code which uses ecl::Array

CMakeFiles/runpath_server.dir/src/runpath_server.cpp.o: In function `ecl::StandardException::~StandardException()':
runpath_server.cpp:(.text._ZN3ecl17StandardExceptionD2Ev[_ZN3ecl17StandardExceptionD5Ev]+0xf): undefined reference to `vtable for ecl::StandardException'
CMakeFiles/runpath_server.dir/src/runpath_server.cpp.o: In function `ecl::Array<double, 0ul>::operator[](unsigned long)':
runpath_server.cpp:(.text._ZN3ecl5ArrayIdLm0EEixEm[_ZN3ecl5ArrayIdLm0EEixEm]+0x3f): undefined reference to `ecl::StandardException::StandardException(char const*, ecl::ErrorFlag)'
runpath_server.cpp:(.text._ZN3ecl5ArrayIdLm0EEixEm[_ZN3ecl5ArrayIdLm0EEixEm]+0x4d): undefined reference to `typeinfo for ecl::StandardException'
collect2: error: ld returned 1 exit status
optimax_runpath/CMakeFiles/runpath_server.dir/build.make:286: recipe for target '/home/joshua/catkin_ws/devel/lib/optimax_runpath/runpath_server' failed
make[2]: *** [/home/joshua/catkin_ws/devel/lib/optimax_runpath/runpath_server] Error 1
CMakeFiles/Makefile2:29505: recipe for target 'optimax_runpath/CMakeFiles/runpath_server.dir/all' failed
make[1]: *** [optimax_runpath/CMakeFiles/runpath_server.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Good odds this is my fault, but I haven't been able to figure it out. Any assistance would be appreciated.

jbeck28 commented 4 years ago

Made a silly mistake in my cmakelists.txt, closing.