Missing External Function or Resource Not Found When Compiling EXE in LabVIEW

Updated Apr 3, 2019

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Issue Details

When building the code into an executable I get either error "Missing external function" or "Resource not found". 

This code worked in LabVIEW 2015 and previous, however when using 2017 and 2018 these errors occasionally occur. 

Solution

 
  1. When swapping between versions of LabVIEW, linking errors can occur with built executables, due to the dependencies being compiled in a different version of LabVIEW. Resolves this by mass compiling the files in the LabVIEW Project.
  2. This issue can also occurs when a dependency is missing on the computer you are trying to run the executable on. This can be resolved by building the executable into an installer. In an installer you can add in dependencies and the necessary drivers and LabVIEW Run Time version. 

Additional Information

The application builder will not by default build any dynamically linked dependencies if it recognizes those resources already being there. 
There's no bug in here, it's just the logic which the application builder uses to minimize build time.