LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build error 42 on linux

 I am trying to build shared library from my project. After some code changes in the end of build process I receive following message: "Error 42 occurred at System Exec.vi. Command was "gcc -shared -g  -O2 -fPIC -Wl,-Bsymbolic -I/usr/local/natinst/LabVIEW-2009/cintools ufolib.c /usr/local/natinst/LabVIEW-2009/AppLibs/lvdll.a  -o ufolib.so /usr/local/lib/liblvrtdark.so.9.0"

The problem is probably related to System Exec.vi, because if I execute any vi with it, I receive error 42. Before starting build process System Exec runs successfully.

0 Kudos
Message 1 of 4
(3,211 Views)

Hi Tabinin,

 

Are you still getting this error?  And you said that the error happens everytime you use the System Exec.vi, have you tried using it with different commands or the same commands?

 

 

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 4
(3,190 Views)

I have tried different commands with System Exec, always with error result. But I probably find a solution for my situation. The problem appear after failure in DAQ operations in my program. Rebooting a PC has no affect. After changing some DAQ parameters and successfully running the program in LabVIEW, I could build the library!

0 Kudos
Message 3 of 4
(3,174 Views)

Which DAQ parameter are you changing?  Could you post an example?  Any additional information would help.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 4
(3,154 Views)