LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Library Import (undefined structures)

I am trying to import a shared library DLL with its .h file from a motor controller vendor, but I get Undefined symbols for some functions.  I attached the two files.  Can anybody explain how to fix this?

0 Kudos
Message 1 of 3
(3,100 Views)

@altran wrote:

I am trying to import a shared library DLL with its .h file from a motor controller vendor, but I get Undefined symbols for some functions.  I attached the two files.  Can anybody explain how to fix this?


For instance SAFEARRAY? That is a Microsoft data structure and you need the Microsoft SDK headers in order for this definition. Then you need to add the location of those headers to the import wizard configuration.

But you can safe yourself these troubles! SAFEARRAY is not a structure LabVIEW can handle through the Call Library Node directly. And it is definitely not a a structure you do want to handle yourself on diagram level by playing C compiler yourself. If you need any of these functions that use this or similar type defintions, the only feasable solution I can recommend is to start writing real C code and create a DLL wrapper for this DLL!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(3,072 Views)

I was afraid of that.  Thanks rofl

0 Kudos
Message 3 of 3
(3,039 Views)