LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Third party DLL link error

I was followed each NI instructions step in "How to Integrate Microsoft Visual C++ 32-Bit DLLs into LabWindows" (Application Note 093). Unfortunately, when I built my own DLL, that uses many include files, after LabWindows compiling was OK, LabWindows indicates the Project link error: "Undefined Symbol ' DllFunctionName@8' referenced in "CVI_File_Name.c". What is does this message indicate and how can I correct this error.
0 Kudos
Message 1 of 3
(3,348 Views)
You need to add the DLL import library to your CVI project.

HTH, HAND,
Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,348 Views)
hello

You need to have an import library for the dll available for CVI to use. VC generates this lib file for you when you export functions in a dll. Include this file in your project and all should be well. The linker needs this file to resolve any functions that you might be using from the dll.

You can also generate the import library by opening the header file of the dll from CVI, going to Tools >> Generate Dll Import library.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,348 Views)