File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ with `${GTEST_DIR}/include` in the system header search path and `${GTEST_DIR}`
18
18
in the normal header search path. Assuming a Linux-like system and gcc,
19
19
something like the following will do:
20
20
21
- g++ -isystem ${GTEST_DIR}/include -I${GTEST_DIR} \
21
+ g++ -std=c++11 - isystem ${GTEST_DIR}/include -I${GTEST_DIR} \
22
22
-pthread -c ${GTEST_DIR}/src/gtest-all.cc
23
23
ar -rv libgtest.a gtest-all.o
24
24
@@ -28,7 +28,7 @@ Next, you should compile your test source file with `${GTEST_DIR}/include` in
28
28
the system header search path, and link it with gtest and any other necessary
29
29
libraries:
30
30
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 \
32
32
-o your_test
33
33
34
34
As an example, the make/ directory contains a Makefile that you can use to build
You can’t perform that action at this time.
0 commit comments