LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when build dll LabVIEW Project LV2015

n 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: 9 Project link errors
Error generating type library. Midl.exe failed while compiling the odl file used to create the type library.
Note: The error indicates that the odl file has unknown types. This error is possible when
functions with non-standard types are exported using the export qualifier method from files in
release configuration that have not been recompiled during the build process. You can mark all
files for recompilation and repeat the build. To avoid this situation, it is recommended that
you export these functions using the include file method.
Use the generated odl file "c:\Users\vramalin\AppData\Local\Temp\dlltemp3900.819973\SharedLib.odl" with the command line:
C:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\BuildTools\8.1\midl.exe "c:\Users\vramalin\AppData\Local\Temp\dlltemp3900.819973\SharedLib.odl" /win32 /mktyplib203 /tlb "SharedLib.tlb" /IC:\Program Files (x86)\National Instruments\Shared\MSDTRedistributables\BuildTools\8.1 /cpp_cmd c:\program files (x86)\national instruments\shared\lvdb 2015\bin\preprocessor.exe
to see what errors midl.exe reported.

ERROR_REPORTED_TO_USER

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

Yes, that is an error alright.

 

Post some code, or at least tell us what you are trying to do. Just the error message is not enough for us to give any help. There are tons of errors, and thousands of reasons that could trigger them. Some code will narrow it down.

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

Thanks for your valid response.

I solved the issue and now i can build DLL, 

Solution: One of the option  need to be deselect or send parameter as a Reference of Control.

As per my Understanding C header can't recognize LabVIEW datatype if it was integer or some other, If It is Reference of Parameter( mean that We have to create reference for out controls and indicator) then it will (C Header file) accept.

Please refer Attached image you may understand more

 

Please let me know any other concern

Thanks   

Download All
0 Kudos
Message 3 of 3
(2,948 Views)