Ask Your Question
0

win_ros LNK2019 error

asked 2017-01-17 04:38:22 -0500

Ampul3x gravatar image

updated 2017-01-17 12:00:37 -0500

gvdhoorn gravatar image

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?

edit retag flag offensive close merge delete

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.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 05:01:55 -0500 )edit

yeah it is painful!

Ampul3x gravatar image Ampul3x  ( 2017-01-17 11:55:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-17 11:57:01 -0500

Ampul3x gravatar image

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... :/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-17 04:38:22 -0500

Seen: 151 times

Last updated: Jan 17 '17