LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I link another vendor's library into CVI Linux?

I have built an application under Linux using the CVI Run Time version 8.0.  I now need to add functions to control a third party vendor's hardware.  I included the vendor's header file and compiled with CVI on Linux machine.  I used the -l option with cvicc to link with library libdscud5.a provided by the other vendor.  When cvicc hands over to gcc I get the error "cannot find -libdscud5.a".  The library is in the /lib directory as well as in the /usr/lib directory with the cvi libraries.  Why doesn't this work?  I tried using -llibdscud5.a and -libdscud5.a with the same effect.  gcc is version 4.2.2.
0 Kudos
Message 1 of 3
(3,139 Views)

Use -lscud5

 

The prefix lib is assumed as well as the suffix .a or .so

 

Michael

NI

0 Kudos
Message 2 of 3
(3,131 Views)
Thanks.  That's what it needed.  Seems obvious to me now.
0 Kudos
Message 3 of 3
(3,127 Views)