We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a35ed commit 0f64642Copy full SHA for 0f64642
2 files changed
parallel-transform/Makefile
@@ -3,6 +3,7 @@ include ../common.mk
3
4
# per-example flags
5
# CXXFLAGS += -pthread
6
+LDLIBS += -ltbb
7
8
## get it from the folder name
9
TARGET := $(notdir $(CURDIR))
@@ -12,7 +13,7 @@ OBJS := $(SRCS:.cpp=.o)
12
13
all: $(TARGET)
14
15
$(TARGET): $(OBJS)
- $(CXX) $(CXXFLAGS) -o $@ $^
16
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
17
18
%.o: %.cpp
19
$(CXX) $(CXXFLAGS) -c $< -o $@
sudoku-solver/main.cpp
@@ -235,7 +235,7 @@ main(int argc, char* argv[])
235
{
236
if (argc < 2 || argc > 3) {
237
print_usage(argv[0]);
238
- return 1;
+ return 0;
239
}
240
241
size_t max_solutions = 0; // 0 means unlimited
0 commit comments