You have to tell gcc that the currect directory is a library directory. You do that with:
I've revised your makefile for you.
PROG_CXX = test
SRCS = test.cpp item.cpp
CXXFLAGS = -std=c++11 -Wall -Wextra -I .
$(LINK.cc) -o $@ $^ $(LDFLAGS)
Last edited on
Thank you!, I at first didn't implement the dot beside
I but now I understand why it's needed.