Standalone POLINK and POLIB

Started by roger@languageone.com.au, December 05, 2018, 06:21:53 AM

Previous topic - Next topic

frankie

#15
Try with:
polink  -machine:x64 /subsystem:console /entry:_start /largeaddressaware:no /export:_start %1.obj @w.pellesC.libraries
Adding 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  :( )
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

roger@languageone.com.au

Thanks guys. That did the trick.
Oddly, I had tried this once but must of had an error somewhere else that masked this.

Thanks again  :)