LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll build error in lv2014, not in lv2012

Solved!
Go to solution

Hey,

can someone help me out with this dll build error?:

 

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: 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\kd\AppData\Local\Temp\dlltemp2956,052495\ATSV.odl" with the command line:
 c:\PROGRA~2\NATION~1\shared\lvdb\sdk\bin\midl.exe "c:\Users\kd\AppData\Local\Temp\dlltemp2956,052495\ATSV.odl" /win32 /mktyplib203 /tlb "ATSV.tlb" /Ic:\PROGRA~2\NATION~1\shared\lvdb\sdk\include /cpp_cmd c:\PROGRA~2\NATION~1\shared\lvdb\bin\preprocessor.exe
 to see what errors midl.exe reported.

ERROR_REPORTED_TO_USER

 

 

thx.

0 Kudos
Message 1 of 9
(5,157 Views)

Hi, 


I’m Ed from National Instruments Applications Engineering and am looking to solve your issues regarding the DLL build error that you have received. 

So that I can work towards solving the problem would you be able to attach your project/files so that I can verify the naming convention used for the parameters and functions. If I have these files I can attempt to build on our end and hopefully gain a bit more of an understanding as to where the issue lies. 

Best regards, 
Ed

0 Kudos
Message 2 of 9
(5,092 Views)

code attached in zip

0 Kudos
Message 3 of 9
(5,089 Views)

Hi,

I attempted to compile the code that you sent over but I am missing the file SubVI From STR Array to String.vi

 

And thus cannot run the code. Can you please attach the whole library?

Best regards,

Ed

0 Kudos
Message 4 of 9
(5,084 Views)

Hi Ed,

attached extra lib.

 

rgrds,

Koen.

0 Kudos
Message 5 of 9
(5,081 Views)

sorry 2nd attempt

0 Kudos
Message 6 of 9
(5,080 Views)
Solution
Accepted by topic author kdCMC

Hi, 

So I tried to build the project that you sent over and received the same error message that you initially posted. 

In an attempt to diagnose the problem, I removed all of the VI’s from the build specification leaving only the Boolean so as to try and isolate the problem file. The same error message appeared. 

This error message is due to the name of the VI being the same as the type definitions within C/C++ coding. To get around this the VI needs to have a different naming convention. 

The same can be said for the U16 and U32 VI’s. Once all the names have been altered slightly the build should complete. 

Best regards, 

Message 7 of 9
(5,066 Views)

I met the same problem
 dll build error in my computer , not others.I don't want to reinstall system.what should I do?

0 Kudos
Message 8 of 9
(4,716 Views)

I met the same problem
 dll build error in my computer , not others.I don't want to reinstall system.what should I do?

Download All
0 Kudos
Message 9 of 9
(4,715 Views)