WebObjects 4: "fatal error LNK1106"

This article explains why a WebObjects developer on Windows NT might see the error message:

fatal link error LNK1106

when linking new or updated libraries into their WebObjects application.

WebObjects 4.01 on Windows NT uses version 3.10 of the Microsoft linker. Microsoft has released a new version of the linker, version 6.00, which uses a different file format than previous linker versions. As a result, libraries created with link.exe version 6.00 can not be used with any previous version of the Microsoft linker, including the versions Apple is licensed to provide with WebObjects. The new Microsoft linker is included in Microsoft development products such as Visual C++ 6.0.

The error:

fatal link error LNK1106

occurs when WebObjects encounters a library in a format it does not understand. In order avoid the error, the library must be rebuilt with link.exe version 5.00 or earlier. Only libraries built with link.exe version 5.00 or earlier can be linked into WebObjects 4 applications.

Published Date: Feb 20, 2012