How to use nasm to generate a dynamic linked exe on windows?
Asked Answered
B

0

0

Basically I know we can use this to create a static linked exe on windows 32 bit:

nasm -fwin32 test.s
cl.exe test.obj /link libcmt.lib

But how to create a dynamic-linked exe from the obj file nasm generated?

Bergin answered 9/1, 2014 at 1:59 Comment(3)
I haven't done this, but you can try replacing libcmt with msvcrt.Edan
@MikeC Yes, it works! Actually I have tired msvcrt.dll, which says "can not find mscvrt"..Bergin
The .LIB is named "msvcrt"; the DLL is named according to the version of Visual C in use -- e.g. msvcrt90.dllEdan

© 2022 - 2024 — McMap. All rights reserved.