USB C++ Inteface for Odrive 3.6 with Native Protocol

I am trying to get Odrive to work over USB in C++ application using the native protocol

I have tried but it has multiple compiling errors

I tried but the init() function continually fails. Seems
like the Odrive does not reply and the function times out.

I am using a v3.6 Odrive and have compiled it with usb protocol set to native. Using the razors_edge branch