I have two projects
- the first project is compiled with clang
- the second project is compiled with gcc and uses code from the first project
The second project fails with an undefined reference error to a function with type traits:
CMakeFiles/RobotAPICore.dir/remoterobot/RobotStateObserver.cpp.o: In function
`RobotStateObserver::udpatePoseDatafields(std::map<std::string, IceInternal::Handle<FramedPoseBase>, std::less<std::string>, std::allocator<std::pair<std::string const,
IceInternal::Handle<FramedPoseBase> > > > const&)':
/home/user/RobotAPI/source/RobotAPI/libraries/core/remoterobot/RobotStateObserver.cpp:149:
undefined reference to `Variant::Variant<float>(float const&, boost::disable_if_c<boost::is_base_of<VariantDataClass, float>::value||boost::is_pointer<float>::value, void>::type*)'
If I compile both projects with the same compiler, everything works fine.
Any ideas?
thanks!