xparq / NMAKE-Jumpstart

Single-file MSVC/NMAKE "jumpstart" Makefile for building source trees without fuss or extra tooling
0 stars 0 forks source link

Exe build: link can't find LIBCMT.lib #3

Closed xparq closed 1 year ago

xparq commented 1 year ago
Creating executable: out/example.exe...
link    out/obj/main.obj out/example.lib -out:out/example.exe
Microsoft (R) Incremental Linker Version 14.35.32215.0
Copyright (C) Microsoft Corporation.  All rights reserved.
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'

When running the exact same (copy-pasted) link command manually, it just works fine.

xparq commented 1 year ago

Jesus... I had a macro called lib, shadowing the LIB env var!... :-o