NO

Author Topic: Standalone POLINK and POLIB  (Read 6728 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Standalone POLINK and POLIB
« Reply #15 on: December 10, 2018, 11:51:19 AM »
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  :( )
« Last Edit: December 10, 2018, 01:37:01 PM by frankie »
"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

  • Guest
Re: Standalone POLINK and POLIB
« Reply #16 on: December 10, 2018, 10:20:03 PM »
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  :)