LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2009 DLL build error

Labview fails to build my DLL and a pop up box appears saying File not found, after clicking OK, the details show:-

Error -2147221480 occurred at Building DLL.
An error occurred compiling the DLL because a function or parameter name is illegal.

 

If I reset my computer and start labview, the first build is successful with no errors, all further attempts at building a DLL fail with the File not found error.

 

Does anyone have a suggestion as to the cause of this error?

 

Thanks.

0 Kudos
Message 1 of 3
(2,800 Views)

Hi Baimei101

 

With labVIEW 2009 then there is a known issue when building DLL s.

 

Any parameter of type uintptr_t * will cause the LabVIEW application builder to fail when trying to build a shared library, with "Error -2147221480 occurred at Building DLL." 

Workaround: 1. Open C:\Program Files\National Instruments\LabVIEW 2009\cintools\fundtypes.h in a text editor. 
2. Find the line that says #include . 
3. Above that line, add the following lines: 
#ifdef _CVI_ 
#include 
#endif /* _CVI_ */ 
4. Save the file. 
5. Try the build again. 

 

See the link below for full information on the workaround.

 

http://zone.ni.com/devzone/cda/tut/p/id/9951

Regards

Robert

National Instruments UK & Ireland
0 Kudos
Message 2 of 3
(2,776 Views)

Thanks, already tried that but it didn't fix the problem.

 

As I said, it will complete the first build, but I can't re-build until I reset the computer and try again.

0 Kudos
Message 3 of 3
(2,756 Views)