10-04-2016 06:45 AM
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.
Solved! Go to Solution.
10-10-2016 04:15 AM
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
10-10-2016 04:32 AM
code attached in zip
10-10-2016 04:44 AM
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
10-10-2016 05:06 AM
Hi Ed,
attached extra lib.
rgrds,
Koen.
10-10-2016 05:07 AM
sorry 2nd attempt
10-10-2016 11:03 AM
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,
03-23-2017 10:50 PM
I met the same problem
dll build error in my computer , not others.I don't want to reinstall system.what should I do?
03-23-2017 10:50 PM
I met the same problem
dll build error in my computer , not others.I don't want to reinstall system.what should I do?