Try with:polink -machine:x64 /subsystem:console /entry:_start /largeaddressaware:no /export:_start %1.obj @w.pellesC.librariesAdding the machine type.As specified by Timo the problem is the library file extension '.w' which is not standard.
polink uses the file extension to define the file-type, the extension '.w' is interpreted as an object file, so when the linker try to access the supposed object file format looking for PE header find wrong machine type (and of course a lot of other wrong data
)