humanoid_navigation icon indicating copy to clipboard operation
humanoid_navigation copied to clipboard

Linking error LNK2019 with gridmap_2d.dll when compiling humanoid_navigation on ROS on Windows Melodic

Open Smitty-44 opened this issue 4 years ago • 0 comments

Hi there, I have an Robotis OP3-like biped and successfully compiled all the required Robotis OP3 related packages on a raspberry Pi4, linux with raspbian, ROS Melodic. But, I have a Windows 10 desktop with ROS on Windows, Melodic, as the remote computer. During the catkin_make of the workspace, it receives an error during the linking step of gridmap_2d.dll of the humanoid_navigation package.

GridMap2D.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class ros::Time __cdecl ros::Time::now(void)" (imp?now@Time@ros@@SA?AV12@XZ) referenced in function "public: struct nav_msgs::OccupancyGrid<class std::allocator > _cdecl gridmap_2d::GridMap2D::toOccupancyGridMsg(void)const " (?toOccupancyGridMsg@GridMap2D@gridmap_2d@@QEBA?AU?$OccupancyGrid@V?$allocator@Xstd@@@nav_msgs@@XZ)...

All together there are 7 unresolved externals. Has anyone seen this before or have any ideas how to get past it? Thank you for any help or guidance, Cheers, Smitty

Smitty-44 avatar Aug 31 '21 14:08 Smitty-44