Linker error LNK1113: invalid machine type

Posted by Illuminus on Wed 12 Mar 2003 03:43 AM — 2 posts, 12,861 views.

USA #0
I am trying to compile the SMAUG 1.4a source code that I downloaded from your site, and it compiles fine, (well, ther is one warning), but it halts with this linker error.

Can anybody offer some useful advice?
Australia Forum Administrator #1
I got these messages from the MSDN library:

Linker Tools Error LNK1113
invalid machine type

The machine type specified in the object header is not valid. Probably the file is corrupt. Rebuild the object.

/MACHINE (Specify Target Platform)

Syntax
/MACHINE:{IX86|MIPS|ALPHA|ARM|MIPS|MIPSR41XX|PPC|SH3|SH4}

This option specifies the target platform for the program.

Usually, you do not need to specify the /MACHINE option. LINK infers the machine type from the .OBJ files. However, in some circumstances LINK cannot determine the machine type and issues a linker tools error LNK1113. If such an error occurs, specify /MACHINE.