I build project for Raspberry Pi with help of VisualGDB , Visual c++ and GCC 8.3.0 GDB 8.2.1 Revision 3 Raspbian Buster crosscompiler that comes with it. It runs fine, but how to deal in cases when I need link to libraries? Should I build all required libs with my current crosscompiler? For example how to deal with libxml2 library?
You can simply synchronize the cross-toolchain’s sysroot with the target via VisualGDB Project Properties -> Build Settings -> Synchronize Sysroot and then use the regular syntax for library names and directories. You can find more information on the following page: https://visualgdb.com/documentation/linkerinputs/