Viktor 0 Posted October 14, 2020 Share Posted October 14, 2020 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 Link to post Share on other sites
Backdraft007 0 Posted October 14, 2020 Share Posted October 14, 2020 Hi, did you follow this instructions?https://www.tinkerforge.com/en/doc/Software/API_Bindings_C.html Quote Link to post Share on other sites
photron 14 Posted October 14, 2020 Share Posted October 14, 2020 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 Link to post Share on other sites
Viktor 0 Posted October 15, 2020 Author Share Posted October 15, 2020 Thanks guys. Got it working. Missed the source files. Quote Link to post Share on other sites
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.