Viktor Posted October 14, 2020 at 10:32 AM Posted October 14, 2020 at 10:32 AM 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. Quote
Backdraft007 Posted October 14, 2020 at 10:50 AM Posted October 14, 2020 at 10:50 AM Hi, did you follow this instructions?https://www.tinkerforge.com/en/doc/Software/API_Bindings_C.html Quote
photron Posted October 14, 2020 at 11:35 AM Posted October 14, 2020 at 11:35 AM 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. Quote
Viktor Posted October 15, 2020 at 09:33 AM Author Posted October 15, 2020 at 09:33 AM Thanks guys. Got it working. Missed the source files. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.