LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alternate ibdev() in CLFN

All;

In my quest to be clever, I wrote a new library of 488.2 functions to mimic those of NI and I named them the same.  I'm using a USB-GPIB interface that isn't supported by Linux-GPIB nor NI.

The problem is this, when I link the code (using gcc), I need to link it to liblvrt.so.7.1 to include the memory management functions -- but as I do that, it uses the ibdev() from liblvrt, and not my new library (which was placed ahead of liblvrt in the link statement):
gcc -shared -m32 -lm -o vna_drv.so vna_drv.o analyze.o gsl_circle.o complex.o  /home/danny/tubes/dielectric/rod_software/FTDI_usb_gpib/gpib.so /usr/lib/libgsl.a /usr/lib/libgslcblas.a /usr/local/lv71/AppLibs/liblvrt.so.7.1 /usr/lib/libGL.so /usr/lib/libOSMesa.so.6 -lpthread
I suppose I can do a bulk rename of my functions, but that is fairly ugly.  Does anyone have a suggestion?

Of course, I named them the same so that I would be able to work from one code base and link in NI488.2 when available.

   ...Dan
0 Kudos
Message 1 of 1
(2,541 Views)