Merge pull request #249 from matthiaskrgr/readme

readme: update "g++ (for experts)" build commands.
This commit is contained in:
Daniel Marjamäki 2014-03-04 05:46:03 +01:00
commit c15d45a742
2 changed files with 4 additions and 4 deletions

View File

@ -90,13 +90,13 @@ Flags:
If you just want to build Cppcheck without dependencies then you can use this command:
```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:
```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

View File

@ -68,10 +68,10 @@ Compiling
g++ (for experts)
=================
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:
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
=====