LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling external code (lib instead of dll)

Solved!
Go to solution

hallo,

 

is it possible to call external functions that reside on a static library (.lib) and not a dynamic one (.dll).

 

The funciton "call library function node" seems to allow only dll and not lib.

 

Any suggestion ?

 

Thanks

0 Kudos
Message 1 of 2
(2,481 Views)
Solution
Accepted by topic author davico

No it is not! That's because there is not a single lib format but in fact each compiler uses its own lib format. Namely COFF for MS C compiler and various OMF flavors for Borland C, Symantex C, etc, and ELF for GCC unless you use a Windows target version such as MingW which TRIES to follow COFF. So even if NI would consider allowing to link to libs through the Call Library Node they would be in deep trouble about which compiler format to support.

 

But it is fairly easy to create a DLL from a LIB using the same compiler which was used to create the LIB.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,473 Views)