Issue Details
I am working on developing an application in Visual Studio Code for my NI Linux Real-Time (RT) controller, following the instructions listed in the
NI Linux Real-Time Cross Compiling: Using the NI Linux Real-Time Cross Compile Toolchain with Visual Studio Code tutorial. My code calls different NI drivers, such as NI-SWITCH, to perform the required functionality. Even though I do not get any errors when compiling my main code I always get several
Undefined Reference errors after trying to run the task that builds the binary with Ninja. All of them seem to be related to the functions contained in the NI drivers I am using in my program, such as the one shown in the image below:
FAILED: bin/switch_1
c:/build/23.0/x64/sysroots/x86_64-w64-mingw32/usr/bin/x86_64-nilrt-linux/../../libexec/x86_64-nilrt-linux/gcc/x86_64-nilrt-linux/10.3.0/real-ld.exe: bin/libswitch1.so: undefined reference to `niSwitch_close'