Merge pull request #249 from matthiaskrgr/readme
readme: update "g++ (for experts)" build commands.
This commit is contained in:
commit
c15d45a742
|
@ -90,13 +90,13 @@ Flags:
|
||||||
If you just want to build Cppcheck without dependencies then you can use this command:
|
If you just want to build Cppcheck without dependencies then you can use this command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
|
g++ -o cppcheck -std=c++0x -Iexternals/tinyxml -Ilib cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to use `--rule` and `--rule-file` then dependencies are needed:
|
If you want to use `--rule` and `--rule-file` then dependencies are needed:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
|
g++ -o cppcheck -std=c++0x -lpcre -DHAVE_RULES -Ilib -Iexternals/tinyxml cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
|
||||||
```
|
```
|
||||||
|
|
||||||
### MinGW
|
### MinGW
|
||||||
|
|
|
@ -68,10 +68,10 @@ Compiling
|
||||||
g++ (for experts)
|
g++ (for experts)
|
||||||
=================
|
=================
|
||||||
If you just want to build Cppcheck without dependencies then you can use this command:
|
If you just want to build Cppcheck without dependencies then you can use this command:
|
||||||
g++ -o cppcheck -Ilib -Iexternals/tinyxml cli/*.cpp lib/*.cpp externals/tinyxml/tinyxml2.cpp
|
g++ -o cppcheck -std=c++0x -Iexternals/tinyxml -Ilib cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
|
||||||
|
|
||||||
If you want to use --rule and --rule-file then dependencies are needed:
|
If you want to use --rule and --rule-file then dependencies are needed:
|
||||||
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/tinyxml2.cpp
|
g++ -o cppcheck -std=c++0x -lpcre -DHAVE_RULES -Ilib -Iexternals/tinyxml cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
|
||||||
|
|
||||||
mingw
|
mingw
|
||||||
=====
|
=====
|
||||||
|
|
Loading…
Reference in New Issue