Errno 2 means (google for something like errno list):
#define ENOENT 2
bin/proj
- relative path.
Looking at the Makefile, the most likely reason seems to be that the directory bin
simply does not exist. ld
will not try to create it if it is not there. To fix, add
mkdir -p $(BINDIR)
$(LINKER)
line (-p
switch , , , bin
).
: - , , , ld
. , pwd
, $(LINKER)
, . , Makefile, , , .