-2

Possible Duplicate:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt after installing VS2012 release preview

I am trying to read a text file in c++ visual studio 2010 through a windows32 console app. When using the fstream to try to read the text file I get the lnk 1123 error which says the conversion to COFF failed and that the file is either invalid or corrupt. I know the file is just a simple text file with a list of numbers. Is there a fix for this?

Community
  • 1
  • 1
user1038895
  • 13
  • 1
  • 2
  • 6

1 Answers1

0

COFF(Common Object File Format) is format of object files that generated by visual studio, and file that you try to open will be opened at runtime after you successfully create your output and run it, so it has nothing to do with linker and error. Try to rebuild your program, maybe some of your object files are invalid!

BigBoss
  • 6,904
  • 2
  • 23
  • 38