Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 90 lines (55 sloc) 2.031 kb
88543e8 Added readme.txt
Daniel Marjamäki authored
1 =========
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
2 Cppcheck
88543e8 Added readme.txt
Daniel Marjamäki authored
3 =========
4
5
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
6 About
7
e30c49f Daniel Marjamäki updated readme.txt
authored
8 The original name of this program is "C++check" but it was later changed to "cppcheck".
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
9
d3f30c0 Minor update: Updated the readme and checkproj files.
Daniel Marjamäki authored
10
88543e8 Added readme.txt
Daniel Marjamäki authored
11 Compiling
12
e30c49f Daniel Marjamäki updated readme.txt
authored
13 Any C++ compiler should work.
14
15 To build the GUI, you need Qt. The command line tool doesn't have any dependencies.
16
17 There are multiple compilation choices:
18 * SCons - cross platform build tool
19 * CMake - cross platform build tool
20 * qmake - cross platform build tool - but only the GUI can be built
21 * Visual Studio - Windows
22 * gnu make (for experts)
23 * g++ (for experts)
24
25
26 Scons
27 =====
28 Scons is a multi platform build tool. Python is required to run it.
29 scons
30
31
32 CMake
33 =====
34 CMake is a multi platform build tool with no dependencies.
35 cmake .
36 make
37
38
39 qmake
40 =====
41 You can use the gui/gui.pro file to build the gui.
42 cd gui
43 qmake
44 make
45
46
47 Visual Studio
48 =============
49 Use the cppcheck.sln file.
50
51
52 gnu make (for experts)
53 ======================
54 A simple Makefile generator is available and you can use it like this:
55 g++ -o dmake tools/dmake.cpp lib/filelister.cpp
56 ./dmake
57
58 The generated Makefile may need to be edited to fit your needs.
59 If it doesn't work, unfortunately we can't help you.
60
61
62 g++ (for experts)
63 =================
64 If you just want to build Cppcheck then you can use this command:
65 g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
66
67 If it doesn't work, unfortunately we can't help you.
68
69
6ee5399 Reijo Tomperi cross compiling info added to readme.txt
aggro80 authored
70 Cross compiling Win32 (CLI) version of Cppcheck in Linux
71
e30c49f Daniel Marjamäki updated readme.txt
authored
72 sudo apt-get install mingw32
73 make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
74 mv cppcheck cppcheck.exe
88543e8 Added readme.txt
Daniel Marjamäki authored
75
76 Usage
77
e30c49f Daniel Marjamäki updated readme.txt
authored
78 Run the cppcheck program without parameters and a help text will be shown.
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
79
88543e8 Added readme.txt
Daniel Marjamäki authored
80
81 Recommendations
82
e30c49f Daniel Marjamäki updated readme.txt
authored
83 When the "--all" flag is given you may get a lot of error messages.
d3f30c0 Minor update: Updated the readme and checkproj files.
Daniel Marjamäki authored
84
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
85
86 Webpage
87
e30c49f Daniel Marjamäki updated readme.txt
authored
88 http://www.sf.net/projects/cppcheck
347068b Reijo Tomperi Update man page and readme to reflect the new syntax
aggro80 authored
89
Something went wrong with that request. Please try again.