File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ There are multiple compilation choices:
3737
3838You can use the gui/gui.pro file to build the GUI.
3939
40- ```
40+ ``` shell
4141cd gui
4242qmake
4343make
@@ -63,39 +63,39 @@ http://software-download.name/pcre-library-windows/
6363
6464To build Cppcheck with rules (PCRE dependency):
6565
66- ```
66+ ``` shell
6767make HAVE_RULES=yes
6868```
6969
7070To build Cppcheck without rules (no dependencies):
7171
72- ```
72+ ``` shell
7373make
7474```
7575
7676### g++ (for experts)
7777
7878If you just want to build Cppcheck without dependencies then you can use this command:
7979
80- ```
80+ ``` shell
8181g++ -o cppcheck -Ilib cli/* .cpp lib/* .cpp
8282```
8383
8484If you want to use ` --rule ` and ` --rule-file ` then dependencies are needed:
8585
86- ```
86+ ``` shell
8787g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/* .cpp lib/* .cpp externals/tinyxml/* .cpp
8888```
8989
9090### MinGW
9191
92- ```
92+ ``` shell
9393make LDFLAGS=-lshlwapi
9494```
9595
9696### Cross compiling Win32 (CLI) version of Cppcheck in Linux
9797
98- ```
98+ ``` shell
9999sudo apt-get install mingw32
100100make CXX=i586-mingw32msvc-g++ LDFLAGS=" -lshlwapi"
101101mv cppcheck cppcheck.exe
You can’t perform that action at this time.
0 commit comments