Giovanni is right on the money with this one.
Even though CVI creates object files for each of the source files in the project to speed up the build of your exe in some cases (where there are minor changes between builds) you are not supposed to include these .niobj (non-debuggable) or .nidobj (debuggable) files in your project.
The best method to speed up build time and make sure that you are not creating any debugging overhead in your project is to create a .obj out of the source instead.
Here are the instructions and guidelines for this topic straight from the LabWindows/CVI Programmer's Reference Manual:
Creating Object Files in LabWindows/CVI
To create an object file in LabWindows/CVI, open a source (.c) file and select
Options»Create Object File command in the
Source window. In LabWindows/CVI, you can choose to create an object file for only the currently selected compiler or to create object files for all five compatible external compilers.
Note: Do not set the default calling convention to __stdcall if you want to create a static object for all five compatible external compilers.
Note: LabWindows/CVI automatically creates object files each time it compiles a source file in the project. These object files have either a.niobj or .nidobj file extension,
depending on whether they are compiled with debugging. LabWindows/CVI uses these
files to speed up the building of executables, DLLs, and static libraries. They cannot be added to a LabWindows/CVI project, used in an external compiler, or loaded using the LoadExeternalModule function in the Utility Library.
To view the LabWindows/CVI Programmer's Reference Manual online go to http://www.ni.com/pdf/manuals/320685e.pdf
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask