Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 66 lines (45 sloc) 1.468 kB
dfe18db @kimmov Fix mixed EOL styles in readme.txt. Use LF for now.
kimmov authored
1 =========
2 Cppcheck
3 =========
4
5
6 About
7
8 The original name of this program is "C++check" but it was later changed to "cppcheck".
9
edec43c @danmar mention the manual in the --help output
authored
10 Manual
11
46a1118 @vBm Fixed some spelling mistakes
vBm authored
12 A manual is available online:
edec43c @danmar mention the manual in the --help output
authored
13 http://cppcheck.sf.net/manual.pdf
dfe18db @kimmov Fix mixed EOL styles in readme.txt. Use LF for now.
kimmov authored
14
15 Compiling
16
e30c49f @danmar updated readme.txt
authored
17 Any C++ compiler should work.
18
10e82c0 @danmar readme: tweaked the 'compiling cppcheck' section
authored
19 To build the GUI, you need Qt.
20
3bb2850 @danmar Renaming HAVE_DEPENDENCIES to HAVE_RULES
authored
21 To build the command line tool, no dependencies are required. However for
22 the handling of rules, PCRE is needed.
e30c49f @danmar updated readme.txt
authored
23
24 There are multiple compilation choices:
10e82c0 @danmar readme: tweaked the 'compiling cppcheck' section
authored
25 * qmake - cross platform build tool
e30c49f @danmar updated readme.txt
authored
26 * Visual Studio - Windows
d493592 @danmar readme: removed cmake/scons
authored
27 * gnu make
28 * g++
e30c49f @danmar updated readme.txt
authored
29
30 qmake
31 =====
46a1118 @vBm Fixed some spelling mistakes
vBm authored
32 You can use the gui/gui.pro file to build the GUI.
e30c49f @danmar updated readme.txt
authored
33 cd gui
34 qmake
35 make
36
37 Visual Studio
38 =============
39 Use the cppcheck.sln file.
40
d493592 @danmar readme: removed cmake/scons
authored
41 gnu make
42 ========
edec43c @danmar mention the manual in the --help output
authored
43 make
d493592 @danmar readme: removed cmake/scons
authored
44
e30c49f @danmar updated readme.txt
authored
45 g++ (for experts)
46 =================
edc472d @danmar readme: show how cppcheck is compiled with g++ with or without depend…
authored
47 If you just want to build Cppcheck without dependencies then you can use this command:
48 g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
49
50 If you want to use --rule and --rule-file then dependencies are needed:
3bb2850 @danmar Renaming HAVE_DEPENDENCIES to HAVE_RULES
authored
51 g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
edec43c @danmar mention the manual in the --help output
authored
52 mingw
53 =====
54 make LDFLAGS=-lshlwapi
e30c49f @danmar updated readme.txt
authored
55
dfe18db @kimmov Fix mixed EOL styles in readme.txt. Use LF for now.
kimmov authored
56 Cross compiling Win32 (CLI) version of Cppcheck in Linux
57
58 sudo apt-get install mingw32
59 make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
60 mv cppcheck cppcheck.exe
61
62 Webpage
63
7297ada @gerundt Switch website URL in readme.txt
gerundt authored
64 http://cppcheck.sourceforge.net/
dfe18db @kimmov Fix mixed EOL styles in readme.txt. Use LF for now.
kimmov authored
65
Something went wrong with that request. Please try again.