- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I know this has been treated elsewhere but I didn't find a solution.
This is my makefile:
SHELL := /mnt/c/windows/system32/bash.exe
# Intel Fortran compiler
FC=ifx
# Minimal flags for Intel Fortran compiler
FFLAGS=/nologo /warn
# Extract the number of profiles directly from the CSV file
# Using a more portable approach
NPROF := $(shell if [ -f poutr.csv ]; then cat poutr.csv | wc -l; else echo 0; fi)
# Define target-specific flags
poutrel.o: FFLAGS+=/DNPROF=$(NPROF)
# Main object file
poutrel.o: poutrel.F90 profielen.fi
$(FC) $(FFLAGS) -c -o $@ $
# Generated include file
profielen.fi: export_profielen poutr.csv
./export_profielen > $@
# Ensure export_profielen is built before profielen.fi
profielen.fi: export_proAfielen
# Utility program
export_profielen: export_profielen.f90
$(FC) -o $@ $
# Create DLL
kraanbaan.dll: poutrel.o
$(FC) /libs:dll /exe:$@ $^
# Clean target
.PHONY: clean
clean:
rm -f *.o *.fi export_profielen
This is what I get:
D:\fortran_projects\kb_build_make>make
-f was unexpected at this time.
ifx -o export_profielen $
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.1.0 Build 20250317
Copyright (C) 1985-2025 Intel Corporation. All rights reserved.
ifx: command line warning #10161: unrecognized source type '$'; object file assumed
Microsoft (R) Incremental Linker Version 14.43.34810.0
Copyright (C) Microsoft Corporation. All rights reserved.
-out:export_profielen.exe
-subsystem:console
$
LINK : fatal error LNK1181: cannot open input file '$.obj'
make: *** [makefile:21: export_profielen] Error 1181
Roger
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page