diff --git a/README.md b/README.md index 5ae1dd9f19eb5854012e7558aa6370ef538260c5..13af74bb15ff4047ad769934fc8df20b78ea57c3 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ cd re2-rust make make install make test -g++ ../testinstall.cc -o testinstall -lre2 +g++ testinstall.cc -o testinstall -lre2 ./testinstall ``` @@ -33,8 +33,10 @@ Ubuntu 20.04 $ mkdir build && cd build $ cmake .. $ make +$ cd .. $ sudo make install -$ g++ ../testinstall.cc -o testinstall -lre2 +$ make test +$ g++ testinstall.cc -o testinstall -lre2 $ ./testinstall ``` @@ -44,6 +46,7 @@ or ``` Shell $ make $ sudo make install +$ make test ``` 使用rure库: