There are some object files say a.o
and b.o
created when the binary engine
is created.
Makefile
.PHONY all
all: engine cars
Now this second binary cars
needs .o files a.o
and b.o
created while creating binary engine
The problem here is I am using make -j
for compilation which in some situation results in the object files not created and hence undefined reference
errors. The issue is not seen with make -j 5
.
Is there someway I can make it run parallely with make -j
make -j 5
is failing as of now so I would say it is 100% reproducible which means when it runs with multiple cores the object files is not created by then – user1885183cars
on the.o
files correctly. – G.M.