Jump to content

Lib file for linking library functions


Recommended Posts

I am using the IMU 2.0 in visual c++. When I run the example code "example_simple.c" in visual studio, it says I am missing the link tot he library functions. I was not able to find any lib file in the source directory.

 

1>main.obj : error LNK2019: unresolved external symbol _ipcon_create referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _ipcon_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _ipcon_connect referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _imu_v2_create referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _imu_v2_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _imu_v2_get_quaternion referenced in function _main

 

Thanks for the help.

Link to post
Share on other sites

There is not precompiled library you could link against. You need to include ip_connection.c and brick_imu_v2.c from the API bindings into your Visual Studio project, as the documentation explains.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...