From 47880281257fa14af514c3dffb1245386154de83 Mon Sep 17 00:00:00 2001 From: ummekulsum123 <72161112+ummekulsum123@users.noreply.github.com> Date: Wed, 7 Oct 2020 05:02:12 -0700 Subject: [PATCH 1/2] Update problem1 --- problems/problem1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems/problem1 b/problems/problem1 index b075d30..d8c1921 100644 --- a/problems/problem1 +++ b/problems/problem1 @@ -3,7 +3,7 @@ Literal Strings: Match the lines with the string "abc." in them. --line abc. abc.def -cout << "abc." << endl +count << "abc." << endl abc abcdef 123 From 4a38c18ae5b7d070176a2ee718359039f6691f19 Mon Sep 17 00:00:00 2001 From: ummekulsum123 <72161112+ummekulsum123@users.noreply.github.com> Date: Wed, 7 Oct 2020 05:06:48 -0700 Subject: [PATCH 2/2] Update Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 665d37c..9b4cc8e 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,22 @@ CXXFLAGS = -std=c++11 + LDFLAGS = -lcurses -lboost_regex LDCONFIG = $(shell which ldconfig 2>/dev/null || echo /sbin/ldconfig) -ifneq (,$(findstring libtinfo,$(shell $(LDCONFIG) -p))) +ifneq ($(findstring libtinfo,$(shell $(LDCONFIG) -p))) + LDFLAGS += -ltinfo + endif BINS = regex .PHONY: all + all: $(BINS) regex: regex.cpp .PHONY: clean + clean: rm -f $(BINS)