ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building DLL Error (-2147221480)

Hello,

 

I try to convert a project from 8.6 to 2011 and I got this error message when building a DLL with LabVIEW.

 

 


Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:

Error -2147221480 occurred at Building DLL.
An error occurred compiling the DLL because a function or parameter name is illegal. Please verify that the function and/or parameter names are legal C identifiers and do not conflict with LabVIEW headers.
Additional Information: HandleManager.c - 20 errors, 5 warnings
71, 5 syntax error; found 'identifier' expecting '}'.
71, 23 Warning: Empty declaration.
74, 5 Unrecognized declaration.
85, 5 syntax error; found 'identifier' expecting '}'.
85, 26 Warning: Empty declaration.
86, 5 Unrecognized declaration.
104, 5 syntax error; found 'identifier' expecting '}'.
104, 25 Warning: Empty declaration.
107, 5 Unrecognized declaration.
116, 5 Invalid struct field declarations.
116, 5 syntax error; found 'identifier' expecting '}'.
116, 24 Warning: Empty declaration.
117, 15 syntax error; found 'identifier' expecting ';'.
119, 5 Unrecognized declaration.
125, 5 syntax error; found 'identifier' expecting '}'.
125, 22 Warning: Empty declaration.
127, 9 syntax error; found 'identifier' expecting ';'.
128, 5 Unrecognized declaration.
132, 47 Missing parameter type.
132, 51 syntax error; found '*' expecting ')'.
143, 47 Missing parameter type.
143, 51 syntax error; found '*' expecting ')'.
169, 12 Undeclared identifier 'DRXParamIn'.
174, 12 Undeclared identifier 'InitRFSG_UConly'.
179, 12 Undeclared identifier 'GeneralParameters'.


ERROR_REPORTED_TO_USER

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-2147221480) or for its hexadecimal representation (0x80040018).


 

And the function Prototype is as following:

 

FunctionPrototype.png

 

Is there something wrong with it that generate this error?

 

Dany

LabVIEW ChampionArchitect
0 Kudos
Message 1 of 5
(4,313 Views)

Hi Dany,

 

It would seem that the error indicates one of your variables may have a character that is not an acceptable C identifier.  Try naming your variables in conduct with these rules. 

 

http://msdn.microsoft.com/en-us/library/e7f8y25b.aspx

 

Hope this helps!

Cole R.
National Instruments
Software Engineer
0 Kudos
Message 2 of 5
(4,271 Views)

Hello Cole, in fact the build work in 8.6 it's only on 2011 with Windows XP. I made a simple project that reproduce de problem with LV2011 and windows XP. The same test work correcly on windows 7. 

But for the moment I can't upgrade all my setup to Windows 7.

 

Dany

LabVIEW ChampionArchitect
0 Kudos
Message 3 of 5
(4,262 Views)

Hi Dany,

 

I see that you opened an SR (7351353) with Nathan and that he was able to help you out.  With that, I hope all is well and best of luck with your project!

 

Cole R.
National Instruments
Software Engineer
0 Kudos
Message 4 of 5
(4,248 Views)

Yes, we found a workaround to the problem.

 

The problem was the RFSG reference that cause the building problem. I just changed those cluster with variant and now it build correcly.

 

 

Dany

LabVIEW ChampionArchitect
0 Kudos
Message 5 of 5
(4,236 Views)