The problem is that your project settings specify that you are using a precompiled header (stdafx.h) in all of your source files, but your vi_name.c source file does not include a precompiled header. Further complicating the issue is that your precompiled header is a C++ file, but your vi_name.c file is a C file. This means that you cannot simply include your precompiled header (stdafx.h) in vi_name.c.
One option for solving this is to remove your precompiled header from your project - you probably don't need it. To do this, remove stdafx.h and stdafx.cpp from the project. Then go to Project>>Settings>>C/C++>>Category>>Precompiled Headers and choose Not using precompiled headers.
Another option is to disable precompiled headers only for vi_name.c. You do th
is in a manner similar to above, except that you right click on vi_name.c in File View and choose Settings to get to the file-specific settings.
David Rohacek
National Instruments