Linker Tools Error LNK1256

ALINK operation failed : reason

One reason for LNK1256 is a mismatch between the linker and Alink.dll. Compare the versions of these files on the product CD to the files on your computer.

Another reason for LNK1256 is an incorrect version number for an assembly: 65535 is not allowed for any part of the assembly version number. The valid range for assembly versions is 0 – 65534.

The following sample generates LNK1256:

// LNK1256.cpp
// compile with: /clr /LD
// LNK1256 expected
[assembly:System::Reflection::AssemblyVersionAttribute("1.0.65535")];
public class CMyClass {
public:
   int value;
};