LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error generating type library

I encountered a problem when building with long error message shown as below. Also I attached my project.

"Error generating type library. Mktyplib.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's recommended that you export these functions using the include file method.

You can save the odl file and then use the odl file with the command line: "c:\program files\national instruments\cvi71\sdk\bin\mktyplib.exe"/win32/nocpp/tlb interface_dbg.tlb" "interface\interface_dbg.odl" to see what error s mktyplib.exe reported. Do you want to save the odl file now?

If you choose to save the odl file, the command line dispalyed aboe will be copied to the clipboard

Then it doesn't compile a dll, just saves a odl. What is wrong with my set-up? I have built many dlls before. This is the first time I had to include the userinterface api, and cvicallback functions. If anyone can tell me what this error means, and how to fix it I’d appreciate it.

0 Kudos
Message 1 of 3
(3,308 Views)
The problem is mainly that you called your library 'interface'. That is a reserved word in ODL, so cannot be used for the name of the library.


Either call the library something else, or if you don't need the type library turn it off.


Martin.

--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,280 Views)
Thanks.  I can't believe my problem was so lame.  I knew that it was a simple setting, but I didn't think it would have been my filenames.  Everything compiles once I did rename my files.  Thanks for the help.
0 Kudos
Message 3 of 3
(3,253 Views)