Skip to content

Commit 0f64642

Browse files
Fix
1 parent 56a35ed commit 0f64642

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

parallel-transform/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include ../common.mk
33

44
# per-example flags
55
# CXXFLAGS += -pthread
6+
LDLIBS += -ltbb
67

78
## get it from the folder name
89
TARGET := $(notdir $(CURDIR))
@@ -12,7 +13,7 @@ OBJS := $(SRCS:.cpp=.o)
1213
all: $(TARGET)
1314

1415
$(TARGET): $(OBJS)
15-
$(CXX) $(CXXFLAGS) -o $@ $^
16+
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
1617

1718
%.o: %.cpp
1819
$(CXX) $(CXXFLAGS) -c $< -o $@

sudoku-solver/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ main(int argc, char* argv[])
235235
{
236236
if (argc < 2 || argc > 3) {
237237
print_usage(argv[0]);
238-
return 1;
238+
return 0;
239239
}
240240

241241
size_t max_solutions = 0; // 0 means unlimited

0 commit comments

Comments
 (0)