ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

After some digging, removing m.lib from LINK_LIBRARIES located in the build.ninja file in the build folder fixed the problem, and I was able to compile successfully.

#############################################
# Link the executable C:\ivcon_ws\devel\lib\ivcon\ivcon.exe

build C$:\ivcon_ws\devel\lib\ivcon\ivcon.exe: C_EXECUTABLE_LINKER__ivcon_RelWithDebInfo ivcon\CMakeFiles\ivcon.dir\src\ivcon.c.obj
  FLAGS = /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG
  LINK_FLAGS = /machine:x64 /debug /INCREMENTAL /subsystem:console
  LINK_LIBRARIES = kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
  OBJECT_DIR = ivcon\CMakeFiles\ivcon.dir
  POST_BUILD = cd .
  PRE_LINK = cd .
  TARGET_COMPILE_PDB = ivcon\CMakeFiles\ivcon.dir\
  TARGET_FILE = C:\ivcon_ws\devel\lib\ivcon\ivcon.exe
  TARGET_IMPLIB = C:\ivcon_ws\devel\lib\ivcon.lib
  TARGET_PDB = C:\ivcon_ws\devel\lib\ivcon\ivcon.pdb