10-14-2010 10:05 AM
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.
10-15-2010 09:00 AM
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
10-18-2010 09:23 AM
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.