win_ros LNK2019 error
Hey, I need to use ROS on a windows pc, so I started the tutorial for win_ros. The ros functions are working properly i can run roscore and the precompiled talkerand listener examples. However, following this tutorial, it should be possbile to write code directly in VisualStudio. When I build the talker example there i get a LNK2019 error
*unresolved external symbol* ""__declspec(dllimport) public: __thiscall ros::SerializedMessage::SerializedMessage(class ros::SerializedMessage &&)" (__imp_??0SerializedMessage@ros@@QAE@$$QAV01@@Z)" in Funktion ""public: class ros::SerializedMessage __thiscall boost::_bi::list1<class boost::reference_wrapper...
The problem only when i use the publish() method. Other ROS-related parts like the advertise or spinOnce() are causing no problems. Can anyone help me?
Asked by Ampul3x on 2017-01-17 05:38:22 UTC
Answers
The reason why this error occured was that the compiler of VS2015 was to new. It is possible to set the compiler to VS2013 in project settings and the error was gone. However, i cant run the program... now i get the access violation on 0x000000 error... :/
Asked by Ampul3x on 2017-01-17 12:57:01 UTC
Comments
This is not an answer, but
win_ros
has not been properly maintained for quite some time now. If you have the option, I would try and see whether any of the websocket (rosbridge_suite
), java (rosjava
) or even serial/TCP (rosserial
) alternatives would work.Asked by gvdhoorn on 2017-01-17 06:01:55 UTC
yeah it is painful!
Asked by Ampul3x on 2017-01-17 12:55:33 UTC