If you are using any third party dll's, make sure that their import libraries are not corrupted. You could re-create imprt libraries if you have the header files and the dll by opening up the header, go to Tools >> Generate Import library.
I would also delete any output files that were generated during the building process (exe, the cvibuild folder) and try rebuilding the whole project. You can also mark all files for compilation.
If you are using any CVI fp's, make sure to point to the ones in the CVI 7 folder instead of the 5.0 folder.
You could also try removing functions from main() and see if that changes anything.
Hope this helps
Bilal Durrani
NI