Author Topic: Jwasm64 link error  (Read 543 times)

ragdog

  • Member
  • ****
  • Posts: 515
Jwasm64 link error
« on: January 06, 2017, 10:55:38 PM »
Hello

I try to compile a X64 asm code but i have a link error.

Quote
Microsoft (R) Incremental Linker Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or c
orrupt

Here is my settings

Code: [Select]
\JwasmPackage\Bin\RC.EXE /v "DlgMain.rc"
\JwasmPackage\Bin\JWASM64.EXE /c -win64 -Zp8 /Zi /win64 /D_WIN64 /Cp /nologo /W2 /I"\JwasmPackage\Include" "DlgMain.asm"
\JwasmPackage\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /MACHINE:X64 /LIBPATH:"\JwasmPackage\Lib\x64" /OUT:"DlgMain.exe" "DlgMain.obj" "DlgMain.res"
pause

Can any one tell what is the problem ?

nidud

  • Member
  • *****
  • Posts: 1386
    • https://github.com/nidud/asmc
Re: Jwasm64 link error
« Reply #1 on: January 07, 2017, 12:19:05 AM »
Try adding the switch /coff and remove one of the /win64 switches

ragdog

  • Member
  • ****
  • Posts: 515
Re: Jwasm64 link error
« Reply #2 on: January 07, 2017, 12:41:07 AM »
I have solved it with over a hour Google  :biggrin:

cvtres.exe need MSVCR120_CLR0400.dll 

Now works fine.