readme: update "g++ (for experts)" build commands.

This commit is contained in:
Matthias Krüger 2014-03-03 08:30:05 +01:00
parent 8eddace2da
commit 49f34b8df4
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: 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

View File

@ -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
===== =====