12-09-2015 08:32 PM
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?
12-10-2015 03:05 AM - edited 12-10-2015 03:07 AM
@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!
12-10-2015 11:21 AM
I was afraid of that. Thanks rofl