- Utility: NMake
- Piattaforma: Windows 7
Ho il seguente Makefilenmake aggiungendo alle variabili
FILE = $(shell) *.c
FILE += $(shell) *.cpp
exec:
@echo $(FILE)
Questo funziona perfettamente bene con make. Ciò genera il seguente errore con nmake
makefile(2) : fatal error U1036: syntax error : too many names to left of '='
Stop.
Quale potrebbe essere la causa?
senza la linea
FILE += $(shell) *.cpp
nmake funziona perfettamente bene.
È probabile che l'ultima riga porti a un errore di "macro ricorsiva". –
No, non lo è. – Lothar