Skip to content

Commit d593250

Browse files
Merge pull request #1961 from coppered/patch-1
Update README.md
2 parents 7a0680d + 09beafc commit d593250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

googletest/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ with `${GTEST_DIR}/include` in the system header search path and `${GTEST_DIR}`
1818
in the normal header search path. Assuming a Linux-like system and gcc,
1919
something like the following will do:
2020

21-
g++ -isystem ${GTEST_DIR}/include -I${GTEST_DIR} \
21+
g++ -std=c++11 -isystem ${GTEST_DIR}/include -I${GTEST_DIR} \
2222
-pthread -c ${GTEST_DIR}/src/gtest-all.cc
2323
ar -rv libgtest.a gtest-all.o
2424

@@ -28,7 +28,7 @@ Next, you should compile your test source file with `${GTEST_DIR}/include` in
2828
the system header search path, and link it with gtest and any other necessary
2929
libraries:
3030

31-
g++ -isystem ${GTEST_DIR}/include -pthread path/to/your_test.cc libgtest.a \
31+
g++ -std=c++11 -isystem ${GTEST_DIR}/include -pthread path/to/your_test.cc libgtest.a \
3232
-o your_test
3333

3434
As an example, the make/ directory contains a Makefile that you can use to build

0 commit comments

Comments
 (0)