NO

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

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1686
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 »

Offline roger@languageone.com.au

  • Member
  • *
  • Posts: 10
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  :)