2014년 10월 15일 수요일

The way to solve LNK1123 error


You probably have an experience which is occurred a link error when you use Visual Studio. There are many link errors. 

In this article, I'm going to solve the error related to LNK1123. LNK1123 error occurred many a time if you got the code from other person or a website likes table below. 

fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

At the beginning to implement a DAQ application for C, C++ using NI's example, you can show this error when you compile an example like a picture below.

I got this error when I compiled DO example.


To solve it, you need to change a property which is associated with Enable Incremental Linking in Visual Studio.

At first, you should click properties menu for it.


After a click, you can see Property Page. you can find a solution in Linker category likes a picture below.
(Path : Configuration Properties - Linker - General)


This property's default is 'Yes(/INCREMENTAL)'. If you change this value to 'No(INCREMENTAL)', you will resolve this error.


This article explained the solution for LNK1123.
Thanks.

댓글 없음:

댓글 쓰기