LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Loading DLL: Missing export

Hey,

 

I'm having a problem running an RT DLL (call it file2) that uses an RT DLL (call it file1) that uses nixnet. When I try to debug file2, I get the error message:

 

Error loading 'file1.dll': Missing export 'nxClear' from 'file1.dll'

 

I know that the linking is somehow messed up because nxClear is not a function in file1.dll. It's a function from the nixnet library. I would think that nxClear would be an import for file1.dll so it seems like I haven't got something setup correctly. To include the nixnet library in file1.dll, in the .c file that uses it all I have done is #include "nixnet.h" and this has been sufficient for debugging file1.dll. But now that I'm using file1.dll in file2.dll it seems confused about where nxClear comes from.

 

How do I link stuff in file1.dll correctly?

 

Any help is appreciated,

Kevin Key

0 Kudos
Message 1 of 2
(2,862 Views)

I discovered that I had to include the nixnet.lib file in the project. Although, it's not necessary for other ni libraries (for instance nidaqmx) because they must be linked in correctly.

0 Kudos
Message 2 of 2
(2,852 Views)